Ask coding questions

← Back to all posts
Why won't my code work???
TheBiped (2)

Some if statements aren't working and also print statements, I need help because some of them won't work and I can't figure out why.

Comments
hotnewtop
ErrorNoInternet (13)

@TheBiped I'm not 100% sure, but I think if Something == 1 or 2 is wrong. It should be if Something == 1 or Something == 2

ErrorNoInternet (13)

@TheBiped Yup, its 100% because of that. The first thing that the program checks after you enter Biped is shutdown. if command2 == "Shutdown" or "Shutdown" checks to see if "Shutdown" is a valid string (and it is because of ... or "Shutdown"), so that causes the program to shutdown after you enter your name.

RYANTADIPARTHI (6006)

could you specifically tell which is not working?