+ 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

29th Mar 2020, 1:20 PM
Christian Jacob O'Neill
Christian Jacob O'Neill - avatar
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)
29th Mar 2020, 1:23 PM
John Robotane
John Robotane - avatar
+ 2
The program works. You just don't print it.
29th Mar 2020, 1:23 PM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar
+ 1
Thanks guys!! Just getting through the first section trying to practice the knowledge by making this basic program
29th Mar 2020, 1:31 PM
Christian Jacob O'Neill
Christian Jacob O'Neill - avatar
+ 1
keep practicing, you might google search for 'Python tips and tricks' it may help you!
29th Mar 2020, 1:44 PM
John Robotane
John Robotane - avatar