Rocket Launch Sequence
Charlie406 (1)

I am making a launch sequence and am trying to specify that if launch (domain) doesn't equal 1 or 2 then ask it to re enter 1 or 2 but I can't figure out how to get the while loop to identify 1 and 2 are both valid I would appreciate some help or just feel free to test it out, Thank you :).

You are viewing a single comment. View All
Coder100 (18915)

Maybe or?

if a == 1 or a == b:

make sure to don't fall into the trap of:

if a == 1 or b:

or else you get:

if a == True # 1 or b gets evaluated first
Charlie406 (1)

@Coder100 I honestly did not know or existed lmao but won't that shut off the program if you type something other than 1 or 2?