Get startedGet started for free

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

This exercise is part of the course

Intermediate Julia

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise