Computer Science, asked by gautamanshika915, 4 months ago

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

Answers

Answered by Oreki
3

Output:

100

200

300

Explanation:

The loop prints all the elements in the list.

Answered by ravilaccs
0

Answer:

The output is 100,200,300

Explanation:

Python For Loop can be used to iterate a set of statements once for each item of a sequence or collection.

The sequence or collection could be Range, List, Tuple, Dictionary, Set or a String.

for i in [100, 200, 300]:

print (i)​

When program execution enters for loop for the first time, it checks if there is an item from iterable. If an item is available, the program executes statement(s) inside for block. After execution of the statement(s), the program checks if there is next item available. If True, then the statement(s) are executed again for this next item. The for loop block executes for each item in the iterable. After executing the statement(s) for all items in iterable, the execution comes to a situation where there is no next item in the iterable. At that time, as there is no next item, the for loop is deemed completed, and the execution continues with the next statements in the program.

Reference Link

  • https://brainly.in/question/34441003
  • https://brainly.in/question/39710147
Attachments:
Similar questions