-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.py
More file actions
31 lines (25 loc) · 866 Bytes
/
Copy pathrun.py
File metadata and controls
31 lines (25 loc) · 866 Bytes
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
from employee import Employee
from customer import Customer
# to run the banking system
while True:
user_type = int(input(
''' Hello... Welcome to TrustBank System!\n
Please enter your user type:
1. Customer
2. Employee
3. Exit the Banking System
'''))
if user_type == 1:
ID = int(input('Please enter your ID: '))
name = input('Please enter your name: ')
surname = input('Please enter your surname: ')
Customer(ID, name, surname)
elif user_type == 2:
ID = int(input('Please enter your ID: '))
name = input('Please enter your name: ')
surname = input('Please enter your surname: ')
Employee(ID, name, surname)
elif user_type == 3:
break
else:
print('Please enter a valid user type')