Home / Python Tips Generated By ChatGPT / The input() Function for User Input in Python Prompt the user for input. Source Code name = input("Enter your name: ") print("Hello, " + name + "!")