python division
print(12//5)
# output round number
#2
print(12/5)
# output float number
#2.4
python division
print(12//5)
# output round number
#2
print(12/5)
# output float number
#2.4
integer division python
#normal division
5 / 4
#1.25
#integer division
5 // 4
#1
division euclidienne python
nbBoites = 666 // 13
nbReste = 666 % 13
print(nbBoites)
print(nbReste)
integral division in python
#discards the decimal value of the output
7 // 3
# 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
division in python
#/ is the division symbol in Python, so:
print(12 / 3)
#output: 4
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us