InterviewSolution
Saved Bookmarks
| 1. |
What is the output of print(math.trunc(‘3.1’))?(a) 3(b) 3.0(c) error(d) none of the mentioned |
|
Answer» Right answer is (c) error For explanation: TypeError, a string does not have __trunc__ method. |
|