Menu

Input - Code Quiz

1. The user types 15 and presses Enter. What is printed?

age = input("What is your age? ") doubleAge = age + age print(doubleAge)
1515
151515
30
15

2. The user types 15 and presses Enter. What is printed?

age = int(input("What is your age? ")) doubleAge = age + age print(doubleAge)
1515
15
30.0
30

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic