Lesson 17

blue and white striped round textile
blue and white striped round textile

Learning Goal: Students will be able to create a guessing game by building a loop that accesses each value in a string.

Learning Objectives Today I will…

  • Loop through a string to repeat a set of commands for every character in the string

  • Initialize an empty string variable

  • Store an updated value in the initially empty string variable with each iteration of a loop

  • Nest blocks of code by managing indentation​

Today I will…

  • Create a list of letters from a string

  • Initialize an empty string variable

  • Use a loop to access each value in a list one at a time

  • Store an updated value in a list with each iteration of a loop

  • Nest blocks of code by managing indentation