Python Input From Users

/ #Python

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


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.


No comments yet...

Add comment


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.