πŸ“Š Problem Solving and Python Programming
Q. What will be the value of the following
Python expression?
float(4+int(2.39)%2)
  • (A) 5.0
  • (B) 5
  • (C) 4.0
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (C) 4.0

Explanation: the above expression is an example of explicit conversion. it is evaluated as: float(4+int(2.39)%2) = float(4+2%2) = float(4+0) = 4.0. hence the result of this expression is 4.0.


Explanation by: Mr. Dubey
the above expression is an example of explicit conversion. it is evaluated as: float(4+int(2.39)%2) = float(4+2%2) = float(4+0) = 4.0. hence the result of this expression is 4.0.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
580
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate