-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathappone_updated.py
More file actions
60 lines (33 loc) · 1.24 KB
/
appone_updated.py
File metadata and controls
60 lines (33 loc) · 1.24 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
def bankOperations():
print('These are the available options:')
print('1. Withdrawal')
print('2. Cash Deposit')
print('3. Complaint')
selectedOption = int(input('Please select an option:'))
if(selectedOption == 1):
print('you selected %s' % selectedOption)
elif(selectedOption == 2):
print('you selected %s' % selectedOption)
elif(selectedOption == 3):
print('you selected %s' % selectedOption)
else:
print('Invalid Option selected, please try again')
def withdrawal():
amount = float(input("How much would you like to withdrawal?")
print('processing..')
print('take your cash')
name = input("What is your name? \n")
allowedUserDictionary = {
'Seyi':'passwordSeyi',
'Mike':'passwordMike',
'Love':'passwordLove'
}
if(name in allowedUserDictionary):
password = input("Your password? \n")
if(password == allowedUserDictionary[name]):
print('Welcome %s' % name)
bankOperations()
else:
print('Password Incorrect, please try again')
else:
print('Name not found, please try again')