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