Read a number and do the divide by 2 : Divide « Language Basics « Python






Read a number and do the divide by 2

Read a number and do the divide by 2


num = raw_input("Hi.  A number: ")

print  int(num) / 2


           
       








Related examples in the same category

1.truncating divisiontruncating division
2.Divided by int or by floatDivided by int or by float
3.Divide in PythonDivide in Python