1.

Solve : python calculator?

Answer»

hi i'm new to python and i'm trying to make a calculator. It's PURPOSE is to calculate the price of a certain number of UNITS of a product.

Code: [Select]s1 = int(raw_input ("How many units do you need? "))
s2 = int(raw_input ("What is the price per unit? "))
print "The total price for the total number of units is" + (s1*s2)

please tell me why it won't WORK

thanks
frankly, you can just run in with the Python interpreter and it will show you why it won't work. I have found the fault using the interpreter. i want you to try that too..



Discussion

No Comment Found