Advertisements
Advertisements
Question
What will the following expression be evaluated for in Python?
print (4 + 3 * 5/3 − 5 % 2)Options
8.58.010.210.0
MCQ
Advertisements
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?
