CommencerCommencer gratuitement

For loops question

In the for loop below, how many iterations will the loop perform?

names = ["Anthony", "Jennifer", "Harry", "Stephen"]

for name in names
    println(name)
end

Cet exercice fait partie du cours

Intermediate Julia

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice