+ 1

What's wrong why does it output error

<class 'int'> error https://code.sololearn.com/cSh2UaSylHs2/?ref=app

13th May 2017, 6:45 PM
Hasan Fares
Hasan Fares - avatar
4 Réponses
+ 6
in print() change the D to d ;)
13th May 2017, 6:49 PM
Mario L.
Mario L. - avatar
+ 8
Exactly, what Mario said. In the print() method you summon a Demon class, instead of a demon object. BTW, "Summon a demon" sounds kinda cool... 👹
13th May 2017, 6:55 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
thanks I wrote demon with a : deamon at first , and tried with lower case the way i fixed it later in the class .then I changed it after the whole code and never really expected it to be the difference . sometimes one tiny detail can mess a whole code . thanks
13th May 2017, 6:55 PM
Hasan Fares
Hasan Fares - avatar
+ 3
yes summoning has its literal meaning here heh
13th May 2017, 6:58 PM
Hasan Fares
Hasan Fares - avatar