-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFORFUN.py
More file actions
86 lines (76 loc) · 2.23 KB
/
FORFUN.py
File metadata and controls
86 lines (76 loc) · 2.23 KB
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
#password identification excercise
#Add a new user here everytime
username = 'abdullah527382@gmail.com'
password = 'abdullah123'
username2 = 'harris82@gmail.com'
password2 = 'harris123'
LoL = 'a'
CoD = 'b'
FIFA ='c'
#username = 'slifahh'
#password = 'abdul123'
user = raw_input("Enter your username\n")
type(user)
if user == username: #or username2:
passw = raw_input("Please enter password\n")
type(passw)
else:
user = raw_input("Incorrect username: \nTRY AGAIN\n")
type(user)
if user == username: #or username2:
passw = raw_input("Please enter password\n")
type(passw)
else:
raw_input("INCORRECT, try again!" )
type(user)
if user == username: #or username2:
passw = raw_input("Please enter password\n")
type(passw)
#end loop here possible?
if passw == password: #or password2:
choice = raw_input("What would you like to do? \n Play: \n a.League Of Legends \n b.Call of Duty \n c.FIFA \n")
type(choice)
if choice == LoL:
print"......Loading LoL....."
if choice == CoD:
print"......Loading CoD....."
if choice == FIFA:
print"......Loading FIFA....."
else:
retry = raw_input("Last chance: ---> Please choose a, b or c\n")
type(retry)
if retry == LoL:
print"......Loading LoL....."
elif retry == CoD:
print"......Loading CoD....."
elif retry == FIFA:
print"......Loading FIFA....."
else:
print"Closing program"
#this code needs to be repeated
else:
passw = raw_input("Incorrect password: \n1 retry left\n")
type(passw)
if passw == password: #or password2:
#print"Sign in successful"
choice = raw_input("What would you like to do? \n Play: \n a.League Of Legends \n b.Call of Duty \n c.FIFA \n")
type(choice)
if choice == LoL:
print"......Loading LoL....."
if choice == CoD:
print"......Loading CoD....."
if choice == FIFA:
print"......Loading FIFA....."
else:
retry = raw_input("Last chance: ---> Please choose a, b or c\n")
type(retry)
if retry == LoL:
print"......Loading LoL....."
elif retry == CoD:
print"......Loading CoD....."
elif retry == FIFA:
print"......Loading FIFA....."
else:
print"Closing program"
else:
print"Account locked for 10 minutes..."