KnowledgeBoat Logo
|

Computer Applications

What will be the output of

print (3*2)**2
  1. 81
  2. 18
  3. 36
  4. 12

Python Funda

2 Likes

Answer

36

Reason — The given expression (3*2)**2 is evaluated as follows:

= (3 * 2) ** 2
= 6 ** 2 (Since parentheses has higher precedence than exponentiation (**))
= 36

Thus, 36 is printed as output.

Answered By

3 Likes


Related Questions