Use int() : int cast « Buildin Function « Python






Use int()

Use int()

rent = int(raw_input("The rent is: "))

print rent + 5

           
       

Related examples in the same category

1.Use int functionUse int function