Q. What will be output produced by following code? State reason.

 

a = 5 - 4 - 3

b = 3 ** 2 ** 3

print(a)

print(b)

 

Answer =

Line 1:

a = -2

 

Line 2:

b = 3 ** 2 ** 3

   = 3 ** 8

So for:

b = 6561

 

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post