Lesson 11

Learning Goal: Students will be able to randomize a response to user questions using if statements and random numbers.


Learning Objectives
Students will know how to:
Use conditionals and random numbers to produce random results.
Use .ask() to collect and store user input
Use the equality comparison operator (==) to test whether two integers are the same
Today I will…
use if statements, also called conditionals, to create an interactive story
use == to test whether two strings are the same
use .ask() to collect and store user input
add structure to a program and let the programs make "decisions"
test statement that has a set of commands inside the block (indented underneath) that run only if the test statement is true