Swift Playground: learn to code 1

This lesson was challenging because I could not use the same loop. Instead, I was required to identify what the pattern was and write a code that followed that pattern. To find the pattern, I wrote the entire code using single command. Then, I realized that there was a pattern and I could simplify my code by using different loops. I think the goal of this lesson was to write a program using the least amount of commands.

This lesson helped me understand that I should look for patterns in your code.  It also taught me to write a program using loop and the least amount of commands.

Leave a Reply

Your email address will not be published. Required fields are marked *