Quiz · Arrays · lesson 6 of 8
Quiz — enumerated
What does the program print?
let scores = [7, 9, 4]
var position = 0
for (i, _) in scores.enumerated() {
position = i
}
print(position, scores.count)What does the program print?
let scores = [7, 9, 4]
var position = 0
for (i, _) in scores.enumerated() {
position = i
}
print(position, scores.count)