Search⌘ K
AI Features

Quiz: Python User Input

Explore how to collect and convert user input in Python using input() and int() functions through a targeted quiz. Understand how to make interactive programs by applying these concepts in a real-world style birthday calculator project that combines input, variables, and math.

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!

Technical Quiz
1.

What does the input() function do in Python?

A.

Displays output on the screen

B.

Runs the program faster

C.

Asks the user to type something and stores it as text


1 / 3

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.