Informatics Practices

Evaluate the above expressions by using IDLE as a calculator and verify the results that you get manually.

Python Funda

1 Like

Answer

(a)

>>>(2 + 3) ** 3 - 6 / 2
Output
122.0

(b)

>>>(2 + 3) * 5 // 4 + (4 + 6) / 2
Output
11.0

(c)

>>>12 + (3 * 4 - 6) / 3
Output
14.0

(d)

>>>12 + (3 ** 4 - 6) // 2
Output
49

(e)

>>>12 * 3 % 5 + 2 * 6 // 4
Output
4

(f)

>>>12 % 5 * 3 + (2 * 6) // 4
Output
9

Answered By

3 Likes


Related Questions