-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.py
86 lines (61 loc) · 1.39 KB
/
lib.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
80
81
82
83
84
85
86
import sys
import getpass
from time import sleep
from collections import defaultdict
v = "sup"
info = []
present = []
names = []
birthday = []
def createList():
while raw_input("Are you done\n") != "done":
if raw_input("Would you like to enter a present ") == "yes":
gift = raw_input("Enter a gift \n")
present.append(gift)
def enterPerson():
temp = {
raw_input("Enter a name\n"): raw_input("Enter a birthday"); 'dog'}
createList()
info.append(temp)
print info
enterPerson()
print info
def addList():
createList()
info[raw_input("Enter Key\n")] = str(present)
def addPList():
print info
gift = raw_input("Enter a gift idea\n")
presents.append(gift)
info.append(key)
print info
def Choice():
choice = str(raw_input("Would you like to add a name? Yes or no? \n"))
if choice == "yes":
enterPerson()
else:
printInfo()
def printInfo():
print info
def choosePassword():
""" Defines the password variable"""
w = "Please choose a password \n"
global password
for char in w:
sleep(0.1)
sys.stdout.write(char)
sys.stdout.flush()
password = getpass.getpass()
Verify()
def Verify():
"""Sets up verification mechanism for
user to enter different parts of the game"""
x = raw_input("Enter Password ")
while x != password:
print "That's not appropriate"
x = getpass.getpass()
else:
print v
quit()
def Welcome():
"""This welcomes the user"""