KnowledgeBoat Logo
|

Informatics Practices

Write the output of the following:

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

Python Control Flow

2 Likes

Answer

100
200
300

Working

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.

Answered By

2 Likes


Related Questions