code to take input in python code example Example: how to get user input python x = input("enter prompt here: ")