Programming in Swift · Challenge: Arrays | Ray Wenderlich

This is a companion discussion topic for the original entry at

Interesting that in this challenge, I had to make the code read:

for (index, players) in players.enumerated()

to get the same print out. Without adding the “s” to players behind index, the print out did not match Jessy’s.

That’s odd. It shouldn’t matter what you name those (see attached image). What was printing without the “s”?

I think it was my typo in:

print(player, scores[index])

I put in players instead of player

1 Like