Class - 12 CBSE Computer Science Important Output Questions 2025
Write the output of the following:
for i in [100, 200, 300]:
print(i)
Python
Python Control Flow
5 Likes
Answer
100
200
300
Working
The for loop iterates over each element in the list [100, 200, 300] using the in operator, and during each iteration, the variable i takes on the value of each element in the list. The print(i) statement then prints the value of i during each iteration of the loop.
Answered By
2 Likes