input from a user in python code example
Example 1: python input
# use the function input()
# the parameter is something that would
# output on the screen before the input
name = input('What is your name?')
print('Hello ' + name)
Example 2: python user input
user = input("yes, no\n")