Newbie making mistakes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Newbie making mistakes

Soo, I made a code for an example of selecting a hero, and my print code is making a syntax error. btw Is my code clean? https://code.sololearn.com/cHdI9pA57XVZ/?ref=app

13th Sep 2020, 4:55 AM
Andrew
2 Answers
+ 2
There's a few things wrong or different. Check this out. It's your code, just edited. https://code.sololearn.com/cBH3d75t1kcx/?ref=app
13th Sep 2020, 5:06 AM
Slick
Slick - avatar
+ 1
Thanks! When I first read the notification, I thought it said you answered: “You slick answered your own question.” I haven’t gotten to the user input part of the python code, so thanks for teaching me something new! I wanted to actually try to use and make code at least everyday, but i didn’t really want to do that until it taught me user input. But anyway, Thanks!
13th Sep 2020, 5:36 AM
Andrew