🎙 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 6 of 14

What does this print? (code)

What does this print?

print(2 ** 3 ** 2)
  1. A.64
  2. B.512
  3. C.36
  4. D.12
Answer & explanation

Correct answer: 512

** is right-associative: 2 ** 9.

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 →