-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatm (1).py
64 lines (55 loc) · 1.52 KB
/
atm (1).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
import time
print("Welcome to MY ATM")
print("Swipe Card")
amount=1000000
o="4078"
print("_________________")
p=input("enter pin")
print("Verifying.......!!")
time.sleep(3)
if p==o:
print("1.Cash Withdrawl")
print("2.Check enquiry")
print("3.Balance enquiry")
print("4.Print receipt")
print("5.Mini Statement")
print("6.Exit")
ch=int(input("enter your choice"))
if ch==1:
print("c.Current")
print("s.Savings")
print("________________")
h=input("enter your option")
if h=='c':
wdraw=input("enter the amount to be withdraw:")
print("Transaction Done")
print("Take Amount")
print("Hope you had nice time")
else:
sdraw=input("enter the amount to withdraw:")
print("Transaction Successful")
print("Take amount")
print("Hope you had nice time")
elif ch==2:
print(f"Current Balance is {amount}")
print("Hope you had nice time")
elif ch==3:
print(f"Balance is {amount}")
print("Hope you had nice time")
elif ch==4:
yn=input("Print Receipt.{amount} yes/no")
if yn=='yes':
print("Take Receipt")
elif yn=='no':
print("Hope you had nice time")
else:
print("error 404")
elif ch==5:
print("Take your mini statement of balance")
print("Hope you had nice time")
elif ch==6:
exit()
else:
print("error")
else:
print("Invalid Pin ,Try again")