Mega Code Archive

 
Categories / Python / Data Type
 

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

print 3 * 3.75 / 1.5 7.5 print 7.0 / 2