Integer division returns the floor: : Float « Data Type « Python






Integer division returns the floor:

Integer division returns the floor:



print (50-5*6)/4

print 7/3
print 7/-3


           
       








Related examples in the same category

1.Operators with mixed type operands convert the integer operand to floating point:Operators with mixed type operands convert the integer operand to floating point: