Python - Challenge 2
Code Life
By Pierre Marsaa
Battle System - Codémon Creation
Start building a battle system! Create a function to make Codémons:
- create_codemon(name, hp, attack, defense) that returns a dictionary with these stats
- Test by creating Aquachu (100 HP, 60 attack, 30 defense) and Pyrochu (80 HP, 60 attack, 20 defense), then display their stats.
↗️
Loading editor...
↶
↷
💡 Show Solution
Continue