Lesson 18

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

Learning Goal: Students will be able to create a randomized guessing game by building a loop that accesses each value in a list of floats and populates an empty list.

Learning Objectives:

  • Use a list to store a collection of float values

  • Initialize an empty list

  • Add a value to the initially empty list with each iteration of a loop

  • Randomly choose a value from a list

  • Use basic list functions to count items in a list, add all values in a list, and find the maximum and minimum value stored in a list