← Quiz: Python Operators and Input: all 14 questions
Quiz: Python Operators and Input · Question 8 of 14
How do you read a whole number from the user?
How do you read a whole number from the user?
- A.input(int())
- B.int(input())
- C.input().int
- D.number(input())
Answer & explanation
Correct answer: int(input())
input() returns text; int() converts it.
Can you get the rest right without peeking?
Take the timed Quiz: Python Operators and Input quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →