← Quiz: Python Operators and Input: all 14 questions
Quiz: Python Operators and Input · Question 4 of 14
What does this print? (code)
What does this print?
x = 7
x %= 4
x **= 2
print(x)
- A.49
- B.9
- C.3
- D.16
Answer & explanation
Correct answer: 9
7 % 4 = 3, then 3 ** 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 →