Why Ethereum Enables Programmable Money
📖 Scenario: Imagine you want to create a simple digital wallet that can hold money and send it to others automatically based on rules you set. Ethereum lets you do this by using smart contracts, which are like small programs that run on the blockchain.
🎯 Goal: You will build a simple program that shows how Ethereum can hold money and send it automatically when a condition is met. This is the basic idea behind programmable money.
📋 What You'll Learn
Create a dictionary called
wallet with an initial balance of 100Create a variable called
send_amount and set it to 30Write an
if statement that checks if wallet['balance'] is greater than or equal to send_amountInside the
if, subtract send_amount from wallet['balance'] and print a message showing the new balanceIf the balance is not enough, print a message saying 'Insufficient funds'
💡 Why This Matters
🌍 Real World
Ethereum lets people write small programs called smart contracts that can hold and send money automatically based on rules. This is useful for things like automatic payments, loans, or games.
💼 Career
Understanding programmable money is important for jobs in blockchain development, fintech, and software engineering where automation and smart contracts are used.
Progress0 / 4 steps