-
Notifications
You must be signed in to change notification settings - Fork 0
/
ATM Application.py
51 lines (40 loc) · 1.11 KB
/
ATM Application.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
import time
print("-------------------------")
debit_card = "visa"
debit_card2 = "mastercard"
PIN = "1257", "1114", "5555"
currency = "PLN"
currency = "$"
user_id_data = input("Choose your peyment card: ")
if user_id_data == "visa":
print("Visa card selected")
elif user_id_data == "mastercard":
print("MasterCard selected")
print("Processing...")
time.sleep(3)
user_id_data = input("Enter PIN: ")
if user_id_data == "1257":
print("Processing...")
time.sleep(3)
print("PIN confirmed succesfuly")
elif user_id_data == "1114":
print("Processing...")
time.sleep(3)
print("PIN confirmed succesfuly")
elif user_id_data == "5555":
print("Processing...")
time.sleep(3)
print("PIN confirmed succesfuly")
else:
print("Error. Enter the correct PIN")
user_id_data = input("Select a currency - PLN/$: ")
if user_id_data == "PLN":
print("Processing...")
time.sleep(3)
print("Selected PLN")
elif user_id_data == "$":
print("Processing...")
time.sleep(3)
print("Selected $")
else:
print("Error")