brec
0
Q:

python divide floor

In Python 3.0
5 // 2 floor division will return 2.
5 / 2 floating point division will return 2.5
3
# Floor division is a normal division operation except that it returns the largest possible integer. 
# This integer is either less than or equal to the normal division result.

print("Floor of 36 / 5 is:")
print(36 // 5) # 7
1

New to Communities?

Join the community