Alright, so now you know how to store collections of data using Arrays and Dictionaries.

What if you need to write code to do something with each piece of data in the collection?

For example, let’s say you need to give each employee in the company database a salary raise? (Yeah, right!)

Well, we had better learn about Loops to make that happen!

Loops come in handy to let you go through each item in the collection and execute some code for each!

Finally, don’t forget to download the worksheet below to get extra practice!

Learning more effectively by doing the lesson worksheet:

My Courses:



About this video series:

This 7 part video series is the next step from the War Card game (which can be found here:

You’ll continue building your skills with Swift and learn some critical concepts that will enable you to build more complex apps and express more complex logic with your Swift code.


This video series uses the latest and greatest from Apple (Xcode 9, Swift 4, iOS 11) and will teach a beginner with no programming experience how to make iPhone apps. I’m creating these videos with the assumption that the student has no prior knowledge and is starting from scratch.

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!

CodeWithChris is dedicated to teaching beginners and non-programmers all about how to make an app. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift 4, Xcode 9 and app building from my course and materials!

Here’s just a sample of the success stories my students have sent in: