0
Ä° need help //
What means // in python?
4 Answers
+ 5
Spicy Soda
/ normal division which returns value in decimal
// floor division - returns value as a whole number
print (10 / 2) = 5.0
print (10 // 2) = 5
print (11 / 2) = 5.5
print (11 // 2) = 5
print (17 / 2) = 8.5
print (17 // 2) = 8
+ 4
#āāššā¢
// is not a single line comment
Spicy Soda
it's floor division which returns whole number
10//2 = 5
11//2 = 5
17//2 = 8
+ 1
Thank you AJ ı understand now thx
0
Yeah and
-10//3 = - 4
Literally FLOOR division