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

+3

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

4/13/2021 7:55:35 AM

Sam 0000

50 Answers

New Answer

+7

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

+34

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

+8

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

+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.

+5

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

+5

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

+5

nothing, there is not enough brackets

+5

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.

+5

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

+4

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

+4

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

+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

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

+3

The Output is 4

+3

4 output is 4 try it yourself in codeplayground

+3

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

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

+2

+2

Right answer is 4

+2

((3**2)//2) = (9//2) =4