What is the output of (3**2)//2) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

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

13th Apr 2021, 7:55 AM
Sam 0000
Sam 0000 - avatar
125 Answers
+ 20
((3**2)//2) = (9//2) = 4 what was the doubt you were having in it ?
13th Apr 2021, 8:06 AM
Arsenic
Arsenic - avatar
+ 77
= (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 😅
13th Apr 2021, 1:27 PM
Rosy
Rosy - avatar
+ 10
Correct Question: ((3**2)//2) ((3**2)//2) = ((3²)//2) 3² = 3 × 3 = 9 = (9//2) = 4 (floor division) Answer: 4 •••♪
14th Apr 2021, 3:27 AM
ᗩηιηɗуα ᗩɗнιкαяι
+ 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.
14th Apr 2021, 4:59 AM
Macross-Plus
Macross-Plus - avatar
+ 7
Answer =4
14th Jun 2021, 3:59 PM
RuBeen Dahal👿
+ 6
3**2 this 2 means square of 3^2=9?
13th Apr 2021, 8:21 AM
Sam 0000
Sam 0000 - avatar
+ 6
((3**2)//2) Here, (3**2)=9 So, ((3**2)//2)= (9//2)=4
14th Apr 2021, 11:08 AM
Cherukuri Gouri
Cherukuri Gouri - avatar
13th Apr 2021, 7:59 AM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
+ 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.
13th Apr 2021, 8:20 AM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
+ 3
In 3**2 (** means power so here it is 3**2 means square of 3 which is 9)
13th Apr 2021, 8:23 AM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
+ 3
((3**2)//2) = (9//2) Which is equal to 4
13th Apr 2021, 8:10 PM
Vishnuxx
Vishnuxx - avatar
+ 3
The Output is 4
14th Apr 2021, 7:35 AM
Raphael Thikusho II
Raphael Thikusho II - avatar
+ 3
4 Bro
9th Nov 2021, 11:15 AM
Rajdeep Singh
Rajdeep Singh - avatar
+ 3
hey first of all, you miss one parenthesis so you should write: ((3**2)//2) that equals to: 4
5th Mar 2022, 1:09 PM
Kothar Ghafarian
+ 2
3**2 Means square of 3 (3×3=9)
13th Apr 2021, 8:16 AM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
+ 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
13th Apr 2021, 5:44 PM
Dayron Alexis Díaz Rodríguez
Dayron Alexis Díaz Rodríguez - avatar
+ 2
4 output is 4 try it yourself in codeplayground
14th Apr 2021, 3:28 PM
Erkhem
Erkhem - avatar
+ 2
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
22nd May 2021, 10:05 AM
Shantanu singh
+ 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(//)
24th May 2021, 9:38 AM
Praveen Saini
Praveen Saini - avatar
+ 2
#1 3**2 (3*3)=9 #2 (9//2) #3 4 This answers (4)
6th Nov 2021, 12:38 PM
Bharathi R
Bharathi R - avatar