0

result is 0 but how?

print(int((2**4-6)/2)-5)

15th Aug 2022, 6:21 AM
Sojib Mia
Sojib Mia - avatar
1 Réponse
+ 5
Sojib 2**4 = 16 16 - 6 = 10 10 / 2 = 5.0 int(5.0) = 5 5 - 5 = 0
15th Aug 2022, 6:23 AM
A͢J
A͢J - avatar