Q. What will be the output of the following code snippet?

Code:
from math import *
a = 2.19
b = 3.999999
c = -3.30
print(int(a), floor(b), ceil(c), fabs(c))
  • (A) 2 3 -3 3.3
  • (B) 3 4 -3 3
  • (C) 2 3 -3 3
  • (D) 2 3 -3 -3.3
πŸ’¬ Discuss
βœ… Correct Answer: (A) 2 3 -3 3.3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
662
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
99%
Success Rate