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

+1

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

4/13/2021 7:55:35 AM

Sam 0000

+11

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

+49

= (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 π

+11

nothing, there is not enough brackets

+9

Correct Question: ((3**2)//2) ((3**2)//2) = ((3²)//2) 3² = 3 × 3 = 9 = (9//2) = 4 (floor division) Answer: 4 β’β’β’βͺ

+7

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.

+6

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

+6

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.

+6

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

+6

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

+5

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

+5

+4

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

+4

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

+4

The Output is 4

+3

((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

+3

4 output is 4 try it yourself in codeplayground

+2

Correct expression is - (3**2)//2 Calculation: (3**2)//2 = (3*3)//2 [3**2 returns 3 raised to the power 2] = 9//2 = 4 [Integer division, quotient = 4] So, final answer is 4.

+2

It's answer is --- ((3²)//2) = 9/2=4 3**2means 3's square // means divide by So it's answer is 4 bcoz it only gives quotient by use of(//)

+1

3**2 is calculated as 3×3=9 Then., 9//2=4 (//-->floor division operator which chops the fractional part) So Answer is β But, the code you wrote is wrong you have missed one left "(" o/p:- syntax error

+1

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