Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.97 KB | None | 0 0
  1. import time
  2. username = ""
  3.  
  4. def tutorial01():
  5.         print ("The tutorial is currently in progress...")
  6.         time.sleep(2)
  7.         print ("Sorry for the inconvenience!")
  8.         time.sleep(2)
  9.         print("")
  10.         print ("***************************************************************************************\n")
  11.         time.sleep(2)
  12.         main()
  13.  
  14. def signup():
  15.     global name
  16.     print ("Please enter the requirements below")
  17.     print ("------------------------------------")
  18.     username = input("Please enter your username: ")
  19.     password = input("Please enter your password: ")
  20.     for repeat in range (6):
  21.         if repeat ==3:
  22.             print("")
  23.             print ("***************************************************************************************\n")
  24.             time.sleep(2)
  25.             print ("Hello" ,username , "How are you today?")
  26.             time.sleep(2)
  27.             print ("Welcome to Layton's text RPG.")
  28.             time.sleep(2)
  29.             print ("I'm going to show you the basics on what to do within this game!")
  30.             time.sleep(2)
  31.             print("")
  32.             print ("***************************************************************************************\n")
  33.             time.sleep(2)
  34.             tutorial01()
  35.        
  36.  
  37. def main():
  38.     while True:
  39.         print("Please choose from the following options:\n")
  40.         print("1 - Sign Up.\n")
  41.         print("2 - Login.\n")
  42.         print("Q Exit the program.\n")
  43.         userChoice = input()
  44.         if userChoice == "1":
  45.             print("\n***************************************************************************************\n")
  46.             signup()
  47.         elif userChoice == "2":
  48.             print("\n***************************************************************************************\n")
  49.             login()
  50.         elif userChoice == "q" or userChoice == "Q":
  51.                 break
  52.                        
  53. if __name__ == "__main__":
  54.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement