3 ответов
+ 5
just a small tip
use // instead of / to divide and only take integer
print(7/2)
3.5
print(7//2)
3
print(4/2)
2.0
print(4//2)
2
+ 4
division in python normally gives a float in other terms number with decimal.i hope am clear
0
Thank you, that quickly clears up my confusion.