Divide in Python : Divide « Language Basics « Python






Divide in Python

Divide in Python

print "19 / 4 = ",
print 19 / 4
print "WRONG!"
raw_input("Press the enter key for the right answer.")
print 19.0 / 4

           
       








Related examples in the same category

1.truncating divisiontruncating division
2.Divided by int or by floatDivided by int or by float
3.Read a number and do the divide by 2Read a number and do the divide by 2