Programming in Swift: Fundamentals · Challenge: For Loops | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5539282-programming-in-swift-fundamentals/lessons/21

Found two issues in the challenge specs

  1. In challenge 2,

Print out “Range value is X”, where X is the value of rangeStart

should be edited to say

Print out “Range value is X”, where X is the value of rangeValue

  1. In challenge 3,

Declare a variable named randomCount and set it to the value of Int.random(in: 1…5), which which says “pick a random number between 1 and 5”.

should be edited to say

Declare a variable named randomCount and set it to the value of Int.random(in: 1…5), which says “pick a random number between 1 and 5”.

1 is more important than 2 to get intended results, whereas 2 is just a minor grammatical error.

Thanks for the heads up! We’ll note it for our next update. Cheers!

I’m having trouble getting to any of the downloadable materials. If I select the “download zip” in GitHub it only gives me one piece, the while challenge. I can’t seem to get any of the others.
I know this is an older class, maybe I should look for something newer?

Thank you.
Wendell

@slogbelly just checking in – are you downloading the zip from the main homepage of the repo? I just did this and can see all of the content. Let me know.

It was fixed the next day but thank you for checking.
Really enjoying the Swift course btw!