Python Tutorials
Python File Handling
Python Modules
Python allows user input.
That means we can request input from the user.
The method is slightly different from Python 3.6 than Python 2.7.
Python 3.6 uses the input()
method.
Python 2.7 uses the raw_input()
method.
The following example asks for a username, and when you enter a username, it is printed on the screen:
username = input("Enter username:")
print("Username is: " + username)
username = raw_input("Enter username:")
print("Username
is: " + username)
Python stops when it comes to input()
function, and continues when the user enters something.