Darlington School: Private Boarding School in Georgia Loops and Patterns? Using Code to Design a T-shirt
Darlington School: Private Boarding School in Rome, GA
Some text some message..
 

Loops and Patterns? Using Code to Design a T-shirt

Tuesday, April 5, 2022 | By Beth Wardlaw | 131 views

Students in Intro to Coding with Swift learned about "for loop." A for loop keeps track of how many times the loop has been executed. The loop might execute a prescribed number of times, or it might vary based on the length of a list of items. 

You can think of a for loop like grocery shopping. For each ​
item on the grocery list, put the item in your cart.

Next, they got to make a pattern of their own. They designed three to five symbols that represent them, and then organized the symbols in a repeated pattern for their own T-shirts.

Loading...