Lesson 15

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

Learning Goal: Students will be able to create a guessing game by combining loops, conditionals, and user input.

Learning Objectives
Students will know how to:

  • Use a loop to repeat a series of actions

  • Nest conditionals inside a loop

  • Use the greater than > and less than < comparison operators in conditionals

  • Use data type casting to convert data values to the type needed for the specific command

  • Use the break keyword to end a loop



Today I will…

  • create a quiz game that uses a loops and nested if statement loops inside another loop.

  • use int() to cast user input as an integer.