Identify the correct output of the following Python arithmetic expression:…
2023
Identify the correct output of the following Python arithmetic expression: 1+(2-3) * 4 * * 5//6
- A.
-171
- B.
172
- C.
-170
- D.
170
Attempted by 1651 students.
Show answer & explanation
Correct answer: C
Explanation:
Stepwise evaluation:
(2 − 3) = −1
4 ** 5 = 1024
−1 × 1024 = −1024
−1024 // 6 = −171 (floor division moves toward negative infinity)
1 + (−171) = −170