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

0

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

4/13/2021 7:55:35 AM

Sam 0000

96 Answers

New Answer

+11

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

+50

= (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 πŸ˜…

+10

nothing, there is not enough brackets

+8

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

+6

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

+6

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

+5

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

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

+4

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

+4

+3

+3

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

+3

The Output is 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

4 output is 4 try it yourself in codeplayground

+1

+1

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.

+1

lets see we have 3 raise to the power 2 which is equal to 9 3**2 = 9 now // print quotient then 9 divide by 2 leaves 4 as quotient so answer of code"((3**2)//2)" is 4 ((3**2)//2) = (9//2) = 4

+1

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