Python - 5

Python - 5: Getting User Input

Programs can ask users questions using input(). The answer gets stored in a variable.

✦ Python Editor
▶ Output

👀 Show Example Solution
name = input("What is your name? ")

print("Welcome " + name)

food = input("What is your favorite food? ")

print("You like " + food)