+ 2
I NEED HELP!
Can people pls give me a few good inspiring python codes that I can use to improve one of my codes about a shopping trip story? I really need help because I am running out of good ideas. Thank you guys a lot! https://code.sololearn.com/coO0EB0OD2Gy/?ref=app
6 Réponses
+ 4
https://code.sololearn.com/cCAX2aO2TBS2/?ref=app
Try something like this. Dress it up & play with it
+ 3
Add items to an array, request user input, use some conditional logic (if budget > 100, buy 10 items. Else buy 5)
+ 3
Incorporate a dictionary, so the selection of an item will return a price for the item.
Maybe add extra function to create a sum of goods
+ 1
Thx! I’ll be adding that soon when I have the chance!
+ 1
Thx! I’ll be adding that soon when I have the chance!
+ 1
Thx! I’ll be adding that soon when I have the chance!