Python - Challenge 1
📖 Read the lesson
Code Life
By Pierre Marsaa
Basic Codémon
Create a
Codemon
class with:
1.
__init__
taking
name
,
element
,
level
(default 1),
hp
(default 100)
2.
A
__str__
method that returns
"Aquachu [Water] Lv.1 - 100HP"
3.
Create 2 Codémon and print them
↗️
Loading editor...
↶
▶️ Run
↷
💡 Show Solution
Continue