You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
279 B
13 lines
279 B
2 months ago
|
blockchain = []
|
||
|
|
||
|
def get_last_blockchain_value():
|
||
|
return blockchain[-1]
|
||
|
|
||
|
def add_value(transaction_amount, last_transaction=[1]):
|
||
|
blockchain.append([last_transaction, transaction_amount])
|
||
|
|
||
|
|
||
|
add_value(5.3)
|
||
|
add_value(2.8, get_last_blockchain_value())
|
||
|
|
||
|
print(blockchain)
|