Operators with mixed type operands convert the integer operand to floating point: : Float « Data Type « Python






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

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

print 3 * 3.75 / 1.5
7.5
print 7.0 / 2



           
       

Related examples in the same category

1.Integer division returns the floor:Integer division returns the floor: