this is my python script, i would like it to loop after an action has been done... Here:
print("Booting System (Alfa V1.1)")
time.sleep(1)
print("Hello, and welcome to Training OS")
time.sleep(2)
print("What would you like to do ?")
time.sleep(1)
POINT1 HERE, The code should loop from here
txt = raw_input("1.File Explorer 2.System Info. ( 1 or 2 )")
if txt=="1":
print("Loading File Explorer")
time.sleep(1)
print(" _____ _____ \n / | / | \n | | | | \n |_____| |_____| \n File1 File2 ")
time.sleep(0.5)
file = raw_input("1.File1 2.File2 ( 1 or 2 )")
if file=="1":
print("\n\nFile1:"
"\n_______________________________________"
"\nTOP SECRET UPDATE INFO:"
"\n Update Name . . . . 1.2"
"\nEstimated Release Date . . . . 25.09.21"
"\n New Features . . . . Games?"
"\n_______________________________________")
Loop to POINT1 once this is executed
else:
print("\n\nFile2:"
"\n----------------------------------------"
"\n "
"\n Error 404. "
"\n File Missing "
"\n "
"\n----------------------------------------")
Loop to POINT1 once this is executed
else:
print("\n\nSystem Info:"
"\n--------------------------------------------------------------------------------------"
"\n\nOs version: . . . . . 1.1 (New features: File Explorer)"
"\n Founded: . . . . . 22.09.2021, Baku, Azerbaijan"
"\n Products: . . . . . TOS"
"\n\n***This OS is still being developed so some features are currently unaviable :(***"
"\n--------------------------------------------------------------------------------------")
Loop to POINT1 once this is executed
NOTE THAT THE 4 SEPARATED CODE PART FOLLOW EACH OTHER IN ONE PIECE
It would be so cool if someone actually managed to help me, i just started learning python and i really would like to finish this project :)
raw_inputchanged to justinputin python 3.