Python Tutorial : How to get User Input

This tutorial will show how to get user input from those who are interacting with your program.

Use input() to get users input

Age = input("Enter your age:")
print("User's age is: " + Age)
Output :

Enter your age: { 21 }
User’s age is: 21

Check out more tutorials below!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s