PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
What is the output of print(math.trunc('3.1'))?
A. 3
B. 3.0
C. error
D. none of the mentioned
Show Answer
Next Question
Correct Answer:
C
Explanation: TypeError, a string does not have __trunc__ method.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap