-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path23.py
61 lines (61 loc) · 1.66 KB
/
23.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
a="123"
name="karthik"
bal=0
def deposit():
c=int(input("Enter the amount you want to deposit: "))
global bal
bal+=c
print("Your current blance is",bal)
l=input("1 for deposit , 2 for withdrew ,3 for checking balance: ")
if l=="1":
deposit()
elif l=="2":
withdrew()
elif l=="3":
balance()
def withdrew():
global bal
d=int(input("Enter the amount you want to withdrew: "))
if bal>d:
bal-=d
else:print("You dont have enough balance")
print("Your current blance is",bal)
l=input("1 for deposit , 2 for withdrew ,3 for checking balance ,4 for cancell ")
if l=="1":
deposit()
elif l=="2":
withdrew()
elif l=="3":
balance()
def balance():
global bal
print("Your current blance is",bal)
l=input("1 for deposit , 2 for withdrew ,3 for checking balance, 4 for cancell : ")
if l=="1":
deposit()
elif l=="2":
withdrew()
elif l=="3":
balance()
for i in range(1):
b=input("Enter your account number: ")
if b==a:
l=input("1 for deposit , 2 for withdrew ,3 for checking balance,4 for cancell : ")
if l=="1":
deposit()
elif l=="2":
withdrew()
elif l=="3":
balance()
else:
b!=a
b=input("Re-enter your act no: ")
if b==a:
l=input("1 for deposit , 2 for withdrew ,3 for checking balance ,4 for cancell : ")
if l=="1":
deposit()
elif l=="2":
withdrew()
elif l=="3":
balance()
else: print("You Entered the maximum limit!!")