Python - Challenge 2
Code Life
By Pierre Marsaa
First Codémon - Starting Your Collection
You're starting your Codémon journey! You want to buy your first 3 Codémon.
You find a shop selling exactly 3 Codémon with these prices: [150, 200, 175]
You have 600 coins saved up.
- Calculate the total cost and store it in total_cost.
- If you have enough money, buy all 3 Codémon! Store their names in my_team and reduce your coins.
↗️
Loading editor...
↶
↷
💡 Show Solution
Continue