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.
/ #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...