-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.py
46 lines (32 loc) · 910 Bytes
/
main.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
__author__ = 'user'
import functions
import database
import cx_Oracle
from connection import con,cur
def main():
database.make_all_tables()
database.reset_withdrawals()
choice = 1
while choice != 0:
print("--- Main Menu --- ")
print("1. Sign Up (New Customer) ")
print("2. Sign In (Existing Customer) ")
print("3. Admin Sign In ")
print("0. Quit ")
try:
choice = int(input())
except:
print("Invalid Choice")
choice = 1
continue
if choice == 1:
functions.sign_up();
elif choice == 2:
functions.sign_in();
elif choice == 3:
functions.admin_sign_in();
elif choice == 0:
print("Application Closed")
else:
print("Invalid Choice")
main()