Ask coding questions

← Back to all posts
Why is this program showing a error to me?
ROCKINGRAYQUAZA

Hey there ! everyone get ready for another question .whenever i am running this program its throwing an error on me I don't know why that's happening.For the sake of convenience ,I have commented the rest of the program
please help me friendz :(

regards
rayquaza

Answered by VulcanWM [earned 5 cycles]
View Answer
Voters
ROCKINGRAYQUAZA
Comments
hotnewtop
VulcanWM

Instead of if fp == (1 or "charmander"):, you should do if fp == ("1" or "charmander"):, because right now, whenever you enter a number, it is a string, not an integer. And the string number 1 is not in any of those if statements, so the variable confrm doesn't define (you didn't give it a thing to do).

ROCKINGRAYQUAZA

Thanks bro this will help me a lot :) stay safe
a have also started discord so can i join you? @VulcanWM

ROCKINGRAYQUAZA

can I bro?? Join your discord @VulcanWM

ROCKINGRAYQUAZA

Please!! @VulcanWM

VulcanWM

What do you mean? @ROCKINGRAYQUAZA

ROCKINGRAYQUAZA

Can i join u on discord??
@VulcanWM

VulcanWM

Friend request me, I’m on the repl.it discord @ROCKINGRAYQUAZA

ROCKINGRAYQUAZA

ok bro i have one more question which i have asked in ask section so can you help me with that too..
@VulcanWM

ROCKINGRAYQUAZA

bro I know you have made story based games in python so will you help me in finishing this? @VulcanWM

ROCKINGRAYQUAZA

only one part is left of rivaal battle it is getting much complicated for me if you can please tell so that i will invite you to the repl. @VulcanWM

VulcanWM
ROCKINGRAYQUAZA

i have just completed the program but testing it so please join and check that i am inviting you @VulcanWM

ROCKINGRAYQUAZA

Thanks to every person who helps :)