Inputs in Python

In Python, the input() function is a built-in method that allows you to prompt the user for input during program execution.
It reads a line from the standard input (typically the keyboard) and returns it as a string.

Inputing Integers

If you want a user to input an integer you use the built-in input() function by using:

int(input("Enter your birthdate"))

If you want a better understanding of Inputs in Python Click the link below to watch a video about Inputs in Python

https://youtu.be/zdVVG6DGI4I?si=6jjtiSZknKF3NL4Q Next

Challenge (optional)

Make a program that asks the user to input their age

r


⏳ Loading...