- 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

25th Oct 2021, 3:01 AM
syae
syae - avatar
4 odpowiedzi
+ 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
25th Oct 2021, 3:24 AM
Ipang
+ 4
Given that you've completed the Python for Beginners course you should know that that code has multiple serious issues.
25th Oct 2021, 3:29 AM
Simon Sauter
Simon Sauter - avatar
+ 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)
25th Oct 2021, 4:29 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
MRoses = moneyToSpend // costPerRose
25th Oct 2021, 7:02 PM
Paul K Sadler
Paul K Sadler - avatar