🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

पायथन में निम्नलिखित अभिव्यक्ति का मूल्यांकन किस रूप में किया जाएगा?

What will the following expression be evaluated to in Python?

print(15.0 / 4 + (8 + 3.0))
A)
B)
C)
D)

Explanation:
  1. Parentheses first:

    • 8+3.0=11.0 (since 3.0 is a float, the result is also a float)

  2. Division operation:

    • 15.0/4=3.75 (since 15.0 is a float, floating-point division occurs)

  3. Addition:

    • 3.75+11.0=14.75

Latest Updates