DAY 4

LOOPS


Loops are one of the things that make computers so utterly brilliant: the ability to repeat some simple task billions of times every second.

Of course, what goes in those loops is down to you: you might be adding some numbers, you might be reading some sensor data, or you might be redrawing the screen 120 times a second. As Craig Bruce said, “it’s hardware that makes a machine fast, but it’s software that makes a fast machine slow.”

Today you have eight one-minute videos to watch, and you’ll meet things like for loops, infinite loops, and more. Once you’ve watched each video there’s a short test to help make sure you’ve understood what was taught.

  1. For loopstest
  2. While loopstest
  3. Repeat loopstest
  4. Exiting loopstest
  5. Exiting multiple loopstest
  6. Skipping itemstest
  7. Infinite loopstest
  8. Looping summarytest

Need help? Tweet me @twostraws!

100 DAYS OF SWIFT


The 100 Days of Swift is a free collection of videos, tutorials, tests, and more to help you learn Swift faster. Click here to learn more, or watch the video below.

Back to 100 Days of Swift

Click here to visit the Hacking with Swift store >>