Why won't my code work???
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.
RYANTADIPARTHI (6006)
could you specifically tell which is not working?
Ask coding questions
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.
could you specifically tell which is not working?
@TheBiped I'm not 100% sure, but I think
if Something == 1 or 2
is wrong. It should beif Something == 1 or Something == 2
@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.@ErrorNoInternet Thanks dude, it worked.