Computer Science
How will Python evaluate the following expression ?
20 + 30 * 40
Python Funda
16 Likes
Answer
20 + 30 * 40
⇒ 20 + 1200
⇒ 1220
Answered By
11 Likes
Related Questions
"Comments are useful and easy way to enhance readability and understandability of a program." Elaborate with examples.
From the following, find out which assignment statement will produce an error. State reason(s) too.
(a) x = 55
(b) y = 037
(c) z = 0o98
(d) 56thnumber = 3300
(e) length = 450.17
(f) !Taylor = 'Instant'
(g) this variable = 87.E02
(h) float = .17E - 03
(i) FLOAT = 0.17E - 03How will Python evaluate the following expression ?
20 - 30 + 40
How will Python evaluate the following expression ?
(20 + 30) * 40