-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.py
113 lines (94 loc) · 2.54 KB
/
data.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
database = [
{
"name":"Hector Liguori",
"human": True,
"parte del hub": True,
"youtuber": False,
"level +10": True,
"iD 0303456": False,
"tiene Anteojos": False,
"pelo corto": True,
"parte de Innovation": True,
"argentin@":True,
},
{
"name":"Diego Martins",
"human": True,
"parte del hub": False,
"youtuber": False,
"level +10": True,
"iD 0303456": False,
"tiene Anteojos": False,
"pelo corto": True,
"parte de Innovation": True,
"argentin@":True,
},
{
"name":"hola hola",
"human": True,
"parte del hub": True,
"youtuber": False,
"level +10": True,
"iD 0303456": False,
"tiene Anteojos": False,
"pelo corto": False,
"parte de Innovation": False,
"argentin@":True,
},
{
"name":"chau chau",
"human": True,
"parte del hub": True,
"youtuber": False,
"level +10": True,
"iD 0303456": False,
"tiene Anteojos": False,
"pelo corto": True,
"parte de Innovation": True,
"argentin@":True,
},
{
"name":"pitufa gandolfo",
"human": True,
"parte del hub": True,
"youtuber": False,
"level +10": True,
"iD 0303456": True,
"tiene Anteojos": True,
"pelo corto": True,
"parte de Innovation": True,
"argentin@":True,
}
]
def take_chance(answer, property):
if answer == "y":
ans = True
else:
ans = False
to_remove=[]
for d in database:
if d[property] != ans:
to_remove.append(d)
for i in to_remove:
database.remove(i)
if len(database) == 1:
print("your character is "+database[0]["name"])
quit ()
ans = input( "Is your character human(y,n)")
take_chance(ans, "human" )
ans = input("Is your character part of the hub(y,n)")
take_chance(ans, "parte del hub")
ans = input("Is your character youtuber(y,n)")
take_chance(ans, "youtuber" )
ans = input("Is your character level up +10(y,n)")
take_chance(ans, "level +10" )
ans = input("Is your character iD:0303456?")
take_chance(ans,"iD 0303456")
ans = input("Does your character regularly wear glasses(y,n)")
take_chance(ans, "glasses" )
ans = input("Does your character have short hair(y,n)")
take_chance(ans, "short hair" )
ans = input( "Is your character part of Innovation(y,n)")
take_chance(ans, "innovation" )
ans = input("Your character is of Argentine nationality(y,n)")
take_chance(ans, "nationality" )