+ 1

Fixing my Python Code

In my python codes here on SoloLearn I have script called “fighters”. I’ve been trying to figure out what my mistake is but can’t figure it out. Suggestions? https://code.sololearn.com/c8yNtQy6LpfH/?ref=app

21st Aug 2019, 5:53 PM
Alex Merced
Alex Merced - avatar
3 Answers
+ 2
You have forgotten to add self to the parameters of your method: def attack(self,...)
21st Aug 2019, 6:10 PM
HonFu
HonFu - avatar
0
ooh, i been doing to much Javascript latley, forget I have to cast my types! thank you
22nd Aug 2019, 2:05 AM
Alex Merced
Alex Merced - avatar