-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha_2.py
More file actions
19 lines (14 loc) · 753 Bytes
/
Copy patha_2.py
File metadata and controls
19 lines (14 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
bingoChain =[]
def get_last_bingoChain_value():
return bingoChain[-1]
def add_Value(transaction_amount, last_transaction =[1]):
bingoChain.append([ last_transaction, transaction_amount])
tx_amount = float(input("What amount would you like to put now? "))
add_Value(tx_amount)
tx_amount = float(input("What amount would you like to put now? "))
add_Value(last_transaction=get_last_bingoChain_value(), transaction_amount=tx_amount)
tx_amount = float(input("What amount would you like to put now? "))
add_Value(tx_amount, get_last_bingoChain_value())
tx_amount = float(input("What amount would you like to put now? "))
add_Value( tx_amount, get_last_bingoChain_value())
print(bingoChain)