Python Input From Users

/ #Python


Most applications requires some sort of input from users. Learn how to get input from the keyboard.

Example

name = input("What is your name:")
print("Hello, " + name)

This example will ask the user for his/hers name. When the user hits enter, the script will print "Hello, " and the name the user typed.

Comments

No comments yet...

Add comment

Info

Please log in to comment!

Newsletter

Subscribe to my weekly newsletter. One time per week I will send you a short summary of the tutorials I have posted in the past week.