HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Digital Currency and Blockchain
  1. 1What a digital currency is and how it is used
  2. 2Blocks, hashes and the chain
  3. 3How a blockchain tracks transactions
  1. Computer Science
  2. /Digital Currency and Blockchain
  3. /What a digital currency is and how it is used

Course 5.2·Lesson 1 of 3

What a digital currency is and how it is used

Some money is never printed or minted. It exists only as records on computers. This lesson explains what a digital currency is, how people use it, and why its records must be kept safe.

about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Digital Currency and Blockchain
  1. 1What a digital currency is and how it is used
  2. 2Blocks, hashes and the chain
  3. 3How a blockchain tracks transactions

Try the code and the simulations beside the lesson.

Money that you cannot hold

Think about the money in a bank account. You cannot touch it, but you know it is there, because the bank keeps a record. A digital currency goes one step further. There are no coins or notes of it at all, anywhere.

A digital currency is a currency that only exists electronically. It is a record of who owns how much, kept on computers. To spend it, a computer changes the record. Nothing is handed over by hand.

How digital currencies are used

People use a digital currency in the same ways as other money, but always through a device.

  • Paying for goods and services online, and in some shops that accept it.
  • Sending money to another person, even in another country, without visiting a bank.
  • Keeping it in a digital wallet. A digital wallet is a program or an app that holds the details a person needs to spend their digital currency.

Every payment is recorded in a ledger. A ledger is a list of records: who paid whom, how much, and when. The balance of each person is worked out from the ledger.

Who keeps the ledger?

For an ordinary bank account, the bank keeps the ledger. Many digital currencies do not have a bank or any single owner in charge. Instead, the ledger is shared between many computers, and it is kept in a blockchain. You meet blockchains in the next two lessons. A digital currency that uses this kind of shared ledger and encryption is often called a cryptocurrency.

Because no single organisation controls the ledger, the records themselves must be impossible to change in secret. Otherwise a person could add units to their own balance.

Good points and risks

These are the points that books usually give. They are not in the syllabus wording, but they help you to explain the idea.

  • Good points. Payments can be made at any time, quickly, to anywhere in the world. No cash needs to be carried.
  • Risks. The value of a digital currency can rise and fall a lot in a short time. If a person loses the details in their digital wallet, they may lose their money for ever. It is not accepted everywhere, and it needs a device and an internet connection.

Practise with new numbers

Try it in Python

The program keeps a small ledger. A dictionary holds each person's balance, and a list holds the payments in the order they were made. A payment goes through only if the sender has enough. You used dictionaries and lists of tuples in the Python Essentials book.

Read it first. Then run it. Check each balance by hand.

1. Change the second payment to ("Ben", "Chen", 40). Predict which payment is refused, then run it.

2. Add a fourth payment from Chen to Ben. What does the last line show now?

Common mistakes

  • Saying a digital currency is stored as coins in a computer. It is only a record, a number in a ledger.
  • Mixing up a digital wallet and a bank. A digital wallet is a program that holds the details needed to spend the currency.
  • Thinking that a ledger is changed when money moves. A new record is added. Old records stay as they are.

Remember these

  • A digital currency is one that only exists electronically.
  • It is used to pay for goods and services and to send money to people, through a device.
  • Every payment is a record in a ledger. Many digital currencies keep that ledger in a blockchain shared by many computers.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. What makes a currency a digital currency?
  1. Give two ways in which people use a digital currency.
  1. Tom's wallet holds 606060 units. He pays 252525 units, then receives 888 units. What is his balance?
  1. What is a ledger?
  1. Give one risk of holding a digital currency.

Enroll free in Digital Currency and Blockchain

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

Leo keeps a digital currency in a digital wallet…Easy · High School (9–10) · by StemPy Lab
A school newsletter says: "A digital currency is like the coins in your pocket, but kept inside a…Medium · High School (9–10) · by StemPy Lab
Three friends start with these balances of a digital currency: Asha 40 units, Bilal 10 units, Carla…Medium · High School (9–10) · by StemPy Lab
Next: lesson 2Blocks, hashes and the chain
← Digital Currency and Blockchain
← PreviousBlocks, hashes and the chain →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Balances from a ledgerPython Lab · by StemPy Lab