CBSE Class 11 Informatics Practices Question 47 of 75

Conditional and Looping Constructs — Question 19

Back to all questions
19
Question

Question 7(b)

Write the output of the following:

for i in [100,200,300] :
   print (i)
Answer
Output
100
200
300
Explanation

The above code iterates through each element in the list [100, 200, 300] using a for loop. During each iteration, it prints the current element i.