Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- print("Loading BoneOS on Python")
- time.sleep(2)
- print("")
- print("BoneOS loaded.")
- print("")
- #Must Access this to continue.
- def main():
- while True:
- UserName = input ("Enter Username: ")
- PassWord = input ("Enter Password: ")
- if UserName == 'Stora' and PassWord == 'Katten':
- time.sleep(1)
- print ("Login successful!")
- logged()
- else:
- print ("Password did not match!")
- def logged():
- time.sleep(1)
- print ("Welcome to BoneOS, StoraKatten")
- command()
- def command():
- while True:
- Command = input ("State command ")
- if Command == 'log off':
- time.sleep(1)
- print("You have been logged off.")
- print("")
- main()
- if Command == 'commands':
- time.sleep(1)
- print("Command list:")
- print("log off commands")
- print("hi license")
- print("shell")
- command()
- if Command == 'hi':
- print ("Hello, Stora!")
- command()
- if Command == 'license':
- print ("Here is the license of python:")
- license()
- command()
- if Command == 'shell':
- print("Here's the shell:")
- shell()
- else:
- time.sleep(1)
- print("That isn't a valid command.")
- command()
- main()
- def shell():
- print("Here's the shell! Do main() to log back in!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement