Quiz: Make the Machine Ask You Something
Quiz yourself on user input and type conversion in Python.
We'll cover the following...
In the last lesson, you learned how to make your Python program interactive using the input() function. You discovered how to ask users questions, store their answers, and even convert those answers into numbers using int() for calculations.
Now, let’s lock in those skills with a quick quiz!
What does the input() function do in Python?
Displays output on the screen
Runs the program faster
Asks the user to type something and stores it as text
Well done! You’ve learned how to collect user input and convert it into usable data.
What’s next?
Time to apply what you've learned! In the next hands-on project, you’ll build a simple birthday calculator. You’ll ask the user for their birth year, then calculate and display their age using Python. This project brings together input, variables, math, and type conversion—so you can see how it all fits in a real-world example.