Saved Bookmarks
| 1. |
What is the output of print(math.trunc(‘3.1’))?(a) 3(b) 3.0(c) error(d) none of the mentionedThe question was asked during an internship interview.I would like to ask this question from Math in portion Mapping Functions and Modules of Python |
|
Answer» RIGHT ANSWER is (c) error For explanation: TYPEERROR, a STRING does not have __trunc__ method. |
|