Distributed Ledger Concept
📖 Scenario: Imagine you want to keep a shared list of transactions that multiple friends can see and agree on. This shared list is called a distributed ledger. Each friend adds their transactions, and everyone can check the list to make sure it is correct.
🎯 Goal: You will build a simple distributed ledger using a list of dictionaries. Each dictionary will represent a transaction with a sender, receiver, and amount. You will add transactions, set a minimum amount to record, and then print the filtered transactions.
📋 What You'll Learn
Create a list called
ledger with 3 specific transactionsCreate a variable called
min_amount set to 50Use a list comprehension to create
filtered_ledger with transactions having amount greater than or equal to min_amountPrint the
filtered_ledger list💡 Why This Matters
🌍 Real World
Distributed ledgers are used in blockchain to keep a shared, secure record of transactions that many people can trust without a central authority.
💼 Career
Understanding how to manage and filter transaction data is important for blockchain developers, data analysts, and software engineers working with decentralized systems.
Progress0 / 4 steps