HOW TO GET INPUT FROM USER IN PYTHON?

User Input in Python

using input() method- The following example asks for the username, and when you entered the username, it gets printed on the screen. Python stops executing when it comes to the input() function, and continues when the user has given some input.

username = input("Enter your username:") #takes input from user
print("Your Username is: " + username)   


Posted

in

Tags:

Comments

Leave a Reply