0

i don get this question well and i needed an answer

Guess the output of this code: print( (3**2)//2 )

26th Apr 2021, 11:08 PM
Stephen Audam
3 Respuestas
+ 5
3**2 is 3 to the power of 2 or 3² 3*3 = 9 9//2 is floor division (truncates the fractional part) Where 9/2 = 4.5 9//2 = 4 So the output is 4
26th Apr 2021, 11:24 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Stephen Audam 4 is the correct output
27th Apr 2021, 10:19 PM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
0
4
26th Apr 2021, 11:23 PM
YUGRAJ