- 1
maximum roses can be bought according to the budget
custumer_budget = input ('custumer_budget(RM9)') each rose costs RM3 input : custumer budget output : maximum roses can be bought https://code.sololearn.com/clA9zw05yTLJ/?ref=app
4 Réponses
+ 4
Yes, what help you need? you haven't described that, so nobody knows.
You need to be more descriptive with what you are asking for, otherwise you might end up getting no replies, for being unclear.
Please follow this tips for posting a question
https://www.sololearn.com/Discuss/333866/?ref=app
+ 4
Given that you've completed the Python for Beginners course you should know that that code has multiple serious issues.
+ 2
syae
Is this what you were trying to do.
customer_budget = int(input() or 9) #RM
rose_each = 3 #RM
num_Roses = customer_budget // rose_each
print("The number of roses you can buy is",num_Roses)
+ 2
MRoses = moneyToSpend // costPerRose