python program assignment help?

im new to the python program i need a little bit of help with his assignment im suppose "Write a Python program that prompts the user to enter the cost of

an item, and prompts the user to enter an amount paid in cents.

Print the change as the number of quarters, dimes, and nickels to

return (assume process are a multiple of 5 cents)."

2 Answers

  • 7 years ago
    Favorite Answer

    cost=int(raw_input('Enter cost'))

    amount=int(raw_input('Enter amount paid'))






    Now print quarters, dimes, nickles

  • 4 years ago

    i've got have been given some books on python, yet i in no way have been given around to discovering it yet (smart for an exceptionally professional simulation application at my paintings) and the books are at my place of work. i'm beneficial in case you google you will discover some tutorials online. as on your specific situation, you probably did no longer somewhat clarify it o.k.: "while a quantity is given will supply me the radius" what does the enter quantity characterize?

Still have questions? Get your answers by asking now.