Lesson 5: User Input
So far we only printed things (Output). Now let's learn how to ask things from the user (Input)!
The input() function
Pauses the program and waits for the user to type something and press Enter.
name = input("What is your name? ")Your Objective
Ask the user for their favorite color.
- Create a variable
colorusinginput(). - Print a sentence using that variable.