← Quiz: Python Operators and Input: all 14 questions
Quiz: Python Operators and Input · Question 1 of 14
What is the output of print(20 // 6, 20 % 6)?
What is the output of print(20 // 6, 20 % 6)?
- A.3.33 2
- B.3 2
- C.3 3
- D.2 3
Answer & explanation
Correct answer: 3 2
20 // 6 = 3 (whole part), 20 % 6 = 2 (remainder).
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 →