English

What will the following expression be evaluated for in Python? print (4 + 3 * 5/3 − 5 % 2) - Computer Science (Python)

Advertisements
Advertisements

Question

What will the following expression be evaluated for in Python?

print (4 + 3 * 5/3 − 5 % 2)

Options

  • 8.5
  • 8.0
  • 10.2
  • 10.0
MCQ

Solution

8.0

Explanation:

(4 + 3 * 5/3 − 5 % 2)

4 + 15/3 − 5 % 2

4 + 5.0 − 5 % 2

4 + 5.0 − 1

8.0

shaalaa.com
Notations for Arithmetic Expressions
  Is there an error in this question or solution?
2022-2023 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×