how to take user input in a function python code example
Example 1: how to receive user input in python
var = input("Text: ")
Example 2: python user input
var = raw_input()
# OR
var = input()
""" raw_input can only be a string, but input can be a string,
integer, or variable. """