using input command in python code example
Example 1: python user input
user = input("yes, no\n")
Example 2: input code for python
# Python 2
txt = raw_input("Type something to test this out: ")
print "Is this what you just said?", txt
user = input("yes, no\n")
# Python 2
txt = raw_input("Type something to test this out: ")
print "Is this what you just said?", txt