Answers for "python divison //"

16

integer division python

#normal division
5 / 4
#1.25

#integer division
5 // 4
#1
Posted by: Guest on April-18-2020
2

python divison //

# "normal" division in python
print(5/2)			# 2
print(-5/2)			# -3
print(5.0/2)		# 2.5
print(-5.0/2)		# -2.5

# floor division in python
print(5//2)			# 2
print(-5//2)		# -3
print(5.0//2)		# 2.0
print(-5.0//2)		# -3.0
Posted by: Guest on October-13-2020
1

how to divide numbers pythom

num / num2
Posted by: Guest on August-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language