What is the difference between the division '/' and '//' in Python

1 Answer

0 votes
print(5 / 2) # floating point division

print(5 // 2) # floor division




'''
run:

2.5
2

'''

 



answered May 30, 2019 by avibootz
edited May 30, 2019 by avibootz

Related questions

...