🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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)?

  1. A.3.33 2
  2. B.3 2
  3. C.3 3
  4. 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 →