💡 What You'll Learn

Programs can ask users questions! Use input() to display a prompt and wait for the user to type something. The answer gets stored in a variable for you to use.

input_demo.py
1name = input("What is your name? ")
2print("Hello,", name, "!")
📺 Interactive Preview


🎯 Your Challenges

1Ask for Age
Change the prompt to ask "How old are you?" and greet based on age
2Favorite Color
Ask for their favorite color and print "I like X too!"
3Multiple Questions
Ask two questions and use both answers in your response

📚 What You Learned