 What is the output of (3**2)//2) | SoloLearn: Learn to code for FREE!

+3

# What is the output of (3**2)//2)

+8

((3**2)//2) = (9//2) = 4 what was the doubt you were having in it ?

+32

= (3**2)//2) = (3^2)//2 = 9//2 = 4 Here comes the explanation, see "**" means raise to the power so, 3** 2 = 3² = 3 × 3 = 9 Now, "//" means the answer will only show the quotient, = 9//2 = 4 because, 2 × 4 = 8 and 4 will be quotient where as 1 will be remainder. I hope I'm clear 😅

+7

Correct Question: ((3**2)//2) ((3**2)//2) = ((3²)//2) 3² = 3 × 3 = 9 = (9//2) = 4 (floor division) Answer: 4 •••♪

+4

https://code.sololearn.com/coSoOXyMgv5m/?ref=app

+4

See according to the question u have :( (3**2)//2) So firstly u will solve the innermost bracket which is (3**2) so first u will solve this and get 9 . Then u will solve the outer bracket ( 9//2) which wil give u output as 4.

+4

3**2 this 2 means square of 3^2=9?

+4

nothing, there is not enough brackets

+4

One of the above answers is technically correct to an extent. You have 1 left parentheses and 2 right ones. So if you try to print(3**2)//2) you will get an error.

+3

3**2 Means square of 3 (3×3=9)

+3

In 3**2 (** means power so here it is 3**2 means square of 3 which is 9)

+3

((3**2)//2) Here, (3**2)=9 So, ((3**2)//2)= (9//2)=4

+2

((3**2)//2) =(9//2) that's 'cause the first thing is to raise 3 to the power of 2 =4 because // shows the quotient of the division, you should see that 2 enters 4 times in 9

+2

((3**2)//2) = (9//2) Which is equal to 4

+2

4 output is 4 try it yourself in codeplayground

+2

I would say "syntax error", should be ((3**2)//2) ((9)//2) (4).5 #int division So = 4

+2

+2

+2

You should use side editor like replit bcoz some math is impossible to do off-head.I know its not authentic but you have to use other methods