how to take input in python from user code example Example 1: how to receive user input in python var = input("Text: ") Example 2: python user input x = input("y/n")