-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserupdate.py
40 lines (34 loc) · 1.64 KB
/
userupdate.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
from fetcher import *
from variables import *
class userupdate:
def newUser(self,name):
print((f'-----------------I am now updating user, {name}******').upper())
print('Enter the details')
job=input('Job: ')
income=input('Income: ')
# WE WILL NOW MAKE A NEW WORKSHEET FOR THE NEW USER BY INPORTING FETCHER
from fetcher import newsheet
newuser=newsheet()
newuser.newws(name,job,income)
print((f'*********Arora Created new database for {name} :) ********').upper())
def infoUpdate(self,username):
print(div1)
print((f'******** ARORA IS Updating {username} userifo********').upper())
print(div1)
print(("Tell me how much you spent this month on the following(enter 0 for no input): ").upper())
electricitybill= int(input("electricitybill: "))
internet2= int(input("internet bill: "))
rent2= int(input("rent: "))
entertainment2= int(input("entertainment like netflix: "))
groceries2= int(input("groceries and food: "))
petrol2= int(input("petrol/diesel: "))
invest2= int(input("investment in stocks: "))
edu2= int(input("investment on your education like books and courses: "))
give2= int(input("donation: "))
other2= int(input("enter the money you spend on other things like shopping etc: "))
print(div1)
expense=[electricitybill,internet2,rent2,entertainment2,groceries2,petrol2,invest2,edu2,give2,other2]
print(aro)
print(div1)
infoUpdater().updates( expense,username)
print(div1)