

InterviewSolution
Saved Bookmarks
1. |
Which of the following expressions involves coercion when evaluated in Python?(a) 4.7 – 1.5(b) 7.9 * 6.3(c) 1.7 % 2(d) 3.4 + 4.6I have been asked this question at a job interview.This intriguing question comes from Precedence and Associativity in portion Precedence and Associativity, Bitwise & Boolean of Python |
Answer» The correct choice is (c) 1.7 % 2 |
|