repl.it
@JakeBusse/

Random Password Stuff

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import time

def startUp():
  print("\033[H\033[J")
  print("Hello, please set your password:")
  global userPass
  userPass = input()
  login()

def login():
  print("\033[H\033[J")
  print("Hello, please enter your password:")
  loginPass = input()

  if loginPass == userPass:
    print("ACCESS GRANTED")
    actionSelect()

  else:
    login()

def returnOption():
  print("\n\n\nPlease type hit enter to return home.")
  returnOption = input()
  returnOption = returnOption.lower()

  if returnOption == "":
    actionSelect()

def internet():
  print("\033[H\033[J")
  print("Please enter webpage")
  webpage = input()
  time.sleep(2.5)
  print("\n\n\n404 PAGE NOT FOUND\nWe could not load " + webpage + ".")
  returnOption()

def files():
  print("\033[H\033[J")
  print("Please select desired folder or enter 'directory' for more options.")
  userFile = input()
  userFile = userFile.lower()

  def fileProcedure():
    print("\033[H\033[J")
    print("No items in " + userFile + ".")
    returnOption()

  if userFile == "desktop":
    fileProcedure()

  elif userFile == "documents":
    fileProcedure()

  elif userFile == "downloads":
    fileProcedure()

  elif userFile == "directory":
    print("\033[H\033[J")
    print("Desktop\nDocuments\nDownloads")

  else:
    print("\033[H\033[J")
    print("Type 'directory' for more options.")

def actionSelect():
  print("\033[H\033[J")
  print("Please select action:")
  global userAction
  userAction = input()
  userAction = userAction.lower()

  if userAction == "internet":
    internet()

  elif userAction == "files":
    files()

startUp()