Imagem de fundo

In Python, the statement 'for loop' is used for iterating...

In Python, the statement 'for loop' is used for iterating over a sequence. Considering that, choose the correct alternative that presents a proper example concerning the use of 'for loop' in Python.


A

for x = ["John", "Sophie", "Junior"]:

print(x)


B

array (["John"],["Sophie"],["Junior"])

for each i = 0 to array[i]

print (array[i])


C

names = ["John", "Sophie", "Junior"]

for x in names:

print(x)


D

names =

{{"John"}, {"Sophie"}, {"Junior"}}

for x in names:

print(names)


E

array.names("John", "Sophie", "Junior")

for x print(names[x]):

end for: