+ 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

13th Jun 2019, 7:31 PM
Mausam
Mausam - avatar
6 Réponses
+ 4
https://code.sololearn.com/cCAX2aO2TBS2/?ref=app Try something like this. Dress it up & play with it
13th Jun 2019, 8:49 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Add items to an array, request user input, use some conditional logic (if budget > 100, buy 10 items. Else buy 5)
13th Jun 2019, 7:54 PM
HNNX 🐿
HNNX 🐿 - avatar
+ 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
13th Jun 2019, 8:35 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thx! I’ll be adding that soon when I have the chance!
13th Jun 2019, 7:55 PM
Mausam
Mausam - avatar
+ 1
Thx! I’ll be adding that soon when I have the chance!
13th Jun 2019, 8:39 PM
Mausam
Mausam - avatar
+ 1
Thx! I’ll be adding that soon when I have the chance!
13th Jun 2019, 8:54 PM
Mausam
Mausam - avatar