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
[deleted]

@Charlie406
oh so put a function.

def(loop):
   if (input) == 1:
      (code here)
   elif (input) ==2:
     (code here)
   else:
    loop()
loop()