128k views
13 votes
Karen wants to create a program that will allow the user to input their age. Which of these lines of code should be used?

print("What is your age?")
age = ("What is your age?")
age = input("What is your age?")
age = ask("What is your age?")

User VITs
by
3.1k points

2 Answers

8 votes

Answer:

Answer is age=input(what is your age)

Explanation: Its right because age=input your inputting your age and what is asking you hopefully it helped have a good day :)

User Oreh
by
2.7k points
8 votes

Answer: age = input("What is your age?")

Explanation: Since this is the syntax for inputing a variable and storing it as age

User Yugr
by
3.2k points