-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
71 lines (66 loc) · 2.58 KB
/
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
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
from fetcher import *
from userupdate import userupdate
from displayinfo import displayinfo
from variables import *
from menus import *
#=========================================================
# # OBJECT CREATION FOR ALL CLASSES
#----------------------------------------------------------
menu=menus()
info=Reader()
userup=userupdate()
display=displayinfo()
#==========================================================
username=''
print(div1)
print("====================== HELLO I'M ARORA A PERSONAL FINANCE ADVISOR=================================")
print(div1)
while True:
print(div1)
print('==================DEAR USER, PLEASE ENTER YOUR NAME===========================')
print('type "ex" to exit anytime')
username=input('NAME: ')
print(div1)
if username=='ex':
break
# print(info.check(username))
if info.check(username):
while True:
print(div1)
pas=input('Enter password: ')
if pas=='ex':
break
if info.checkPass(username,pas):
print('==========================WHAT DO YOU WANT ME TO ASSIST WITH============================')
menu=menus()
if(menu.menu1(username)=='ex'):
continue
else:
print(div1)
print('Wrong Password')
else:
print('===============USER NOT FOUND===========================')
while True:
print('================DO YOU WANT TO CREATE A NEW PROFILE?=================')
print('Y/N')
chc=input()
if chc=='Y':
print('==================ENTERING PROFILE CREATION===================')
userup.newUser(username)
print('============GREAT! NOW I SHALL ASK YOU A FEW MORE DETAILS FOR THIS MONTH==========')
userup.infoUpdate(username)
print('==========NOW WE ARE GOOD TO GO!!=================')
print('================USER PROFILE COMPLETE==================')
print('===========DO YOU WANT TO CONTINUE?============')
while True:
chc=input('Y/N')
if chc=='N': break
else:
menus().menu1(username)
elif chc=='N':
print('=======YOU ENTERED NO!===========')
break
elif chc=='ex':
break
else:
print('================Enter again============')