QuestLab Plataforma Inteligente de Questões
Questão pública

Questão de Tecnologia da Informação

Instituto AOCP - MJ - Engenheiro de Dados - Big Data - 2020 • AOCP • 2020

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:
Quer responder esta questão e acompanhar seu desempenho?

Entre na QuestLab para responder, acessar a AURA, estatísticas, cadernos, anotações e outros recursos da plataforma.