निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा
What will be the output of following expression:
print(10/2+3*5)
A
20.0
B
20
C
40.0
D
40
Explanation
Let's break down the expression 10/2 + 3*5:
- Division:
10 / 2 = 5.0(division in Python always returns a float). - Multiplication:
3 * 5 = 15. - Addition:
5.0 + 15 = 20.0.
So, the result is 20.0.
Answer: (A) 20.0
Correct Answer: A) 20.0