+ 1
Python input/output?
Can someone tell me how to make this program work? I want to input a number when running, to multiply by 28 and get an output https://code.sololearn.com/ctce9mCfs6o3/?ref=app
4 Answers
+ 3
you should print the result.
print ('this is an ounce to grams converter')
ounce=28
grams=float(input('how many ounces do you have: ')) * float(ounce)
print (grams)
+ 2
The program works. You just don't print it.
+ 1
Thanks guys!! Just getting through the first section trying to practice the knowledge by making this basic program
+ 1
keep practicing, you might google search for 'Python tips and tricks' it may help you!