This Python main is what greets the user to a thrice nested super duper barebones OS. The entire rest of my code isn't bug free but this section is, and it feels dirty anyway. I'd like to know how to make it better, by adhering to conventions, or by removal of fatty code.
NOTE: I am not looking to use classes with any of this, because part of the challenge of this program is structuring it with procedural means.
from functions import * innerLoopFlag = False while True: if innerLoopFlag: break makeNew = raw_input("Login || Create New Account... ") if makeNew == "c-na": ui = createAccount() createFileSyst(ui) break if makeNew == "l-a": ui = [raw_input("Username... ").strip(),pw("Password... ").strip()] if not os.path.isdir(ui): print "It appears that this username doesn't exist, please log in legitimately or create an account" continue if ui: while True: if takeCheck(ui): print "Successful login..." innerLoopFlag = True break else: print "Failure logging in, retrying..." all() print "Goodbye", ui