Digital Tech Notes (JSS1 - SS3)

Introduction to Programming for JSS 2

Learn the meaning, importance, and types of programming languages for JSS 2. Explore real examples like Scratch and Python in this NERDC-aligned guide

 



Introduction:

Have you ever wondered how your phone knows what to do when you tap an app? Or how a game like Temple Run knows when to make your character jump or slide? Behind all of that is something called programming, and it is one of the most important skills anyone can learn in today's world.

Think about some of the things Nigerians use every day. The Opay app that helps you send money. The WAEC portal where results are checked. The DStv remote that changes your channels. All of these were built by people who know how to write instructions for computers. Those instructions are what we call programs, and the process of writing them is called programming.

In this lesson, you will discover what programming really means, why it matters especially for young Nigerians like you, and the different types of programming languages that exist. You will also get introduced to two popular examples, Scratch and Python, which are perfect for beginners.

Whether you dream of building your own app someday, working in tech, or just understanding how digital tools work, this topic is the perfect starting point. Let us get into it.


Learning Objectives

By the end of this lesson, you should be able to:

  1. Define programming and explain what a computer program is
  2. Identify the importance of programming in everyday life and in Nigeria
  3. Classify the types of programming languages and give examples of each
  4. Describe the features and uses of Scratch as a beginner programming language
  5. Describe the features and uses of Python as a popular programming language
  6. Demonstrate a basic understanding of how programming applies to real-life situations

What is Programming?

Programming simply means writing a set of instructions that tells a computer what to do. Just like you would give someone directions to find your house, a programmer gives a computer step-by-step directions to carry out a task.

These instructions are written in a special language that computers can understand. That special language is called a programming language. The complete set of instructions written for a particular task is called a program or software.

For example, when a developer in Lagos builds a food delivery app, they write a program that tells the app what happens when you click "Order," how to calculate your total cost, and when to alert the delivery rider. Every step is carefully written out.

A person who writes these instructions is called a programmer or a developer.

What is a Computer Program?

A computer program is a collection of coded instructions that a computer follows to perform a specific task. Programs can be simple, like a calculator app, or very complex, like the system used by the Central Bank of Nigeria to process millions of transactions every day.

Programs are everywhere. Your school's computer-based test (CBT) software used during JAMB is a program. The attendance system your school uses might also be a program. Even the antivirus software that protects your computer is a program.

Why is Programming Important?

You might be thinking, "I am not going to become a programmer, so why do I need to learn this?" That is a fair question. But here is the truth: programming is not just for professional developers anymore. It touches every part of modern life, and understanding it gives you a great advantage.

Here are some reasons why programming is important:

It drives technology and innovation. Everything you enjoy on a screen, from social media to video games to banking apps, was created through programming. Without programmers, none of those tools would exist.

It creates jobs and opportunities. Nigeria's tech industry is growing fast. Companies like Paystack, Flutterwave, and Andela have created thousands of jobs for Nigerians who understand technology and programming. Learning programming today opens doors for your future.

It teaches problem-solving skills. When you write a program, you learn to break big problems into small steps and find logical solutions. These thinking skills are useful in every area of life, not just in tech.

It helps in other subjects. Programming is connected to Mathematics, Logic, Science, and even Art. When you code, you use mathematical thinking in a practical and fun way.

It empowers you to create. Imagine building your own app, game, or website someday. Programming gives you the power to create digital solutions rather than just being a user of what others build.

In a country like Nigeria, where many young people are looking for ways to build businesses and careers, knowing how to program is truly a valuable skill.


Types of Programming Languages

Just like humans speak different languages such as Igbo, Yoruba, Hausa, or English, computers also have different languages used to communicate with them. These programming languages are grouped into three main types based on how close they are to human language or machine language.

1. Low-Level Languages

Low-level languages are programming languages that are very close to the language computers naturally understand, which is made up of 0s and 1s (binary). These languages are difficult for humans to read and write but are very fast and efficient for the computer.

There are two types of low-level languages:

Machine Language is the most basic type. It is written entirely in binary (0s and 1s). Only the computer hardware can understand it directly. It is very difficult for humans to write or read.

Assembly Language is a step above machine language. Instead of using only 0s and 1s, it uses short coded words called mnemonics such as MOV, ADD, and SUB. It is still quite difficult but slightly easier than machine language.

Low Level Language Code Example


Low-level languages are mostly used by engineers who work directly on hardware like microprocessors and embedded systems.

2. Middle-Level Languages

Middle-level languages sit between low-level and high-level languages. They give the programmer some control over hardware while also being somewhat readable by humans.

The best example of a middle-level language is C. C language can be used to write system software, operating systems, and device drivers. It is more readable than machine language but still requires careful and precise writing.

Middle Level Language Code Example


3. High-Level Languages

High-level languages are the most common type used today. They are written in a way that is close to everyday human language, which makes them much easier to learn and use. When you write a program in a high-level language, a special tool called a compiler or interpreter converts it into machine language so the computer can understand it.

Examples of high-level languages include:

Python, which is known for being simple and easy to read. It is widely used in web development, data analysis, artificial intelligence, and education.

Scratch, which uses blocks and visuals instead of typed code. It is designed specially for beginners and young learners.

Java, which is used in Android apps and enterprise software.

JavaScript, which powers most websites and is used for interactive features on web pages.

Basic, which was one of the first languages designed for beginners and is still taught in some schools.

High Level Language Code Example in Python


For JSS 2 students, Scratch and Python are the most recommended starting points.


Scratch: Programming for Beginners

Scratch was created at the Massachusetts Institute of Technology (MIT) in the United States. It was designed specifically for children and beginners who want to learn programming without the stress of typing complex code.

Instead of writing lines of text, Scratch uses drag-and-drop blocks that you snap together like puzzle pieces. Each block represents a command, and when you connect them in the right order, you create a program.



Features of Scratch:

It has a visual, block-based interface that is easy to understand even for beginners. You do not need to memorize any syntax or grammar rules.

It runs on web browsers, which means you can use it on a school computer or even on your phone at websites.scratch.mit.edu without downloading anything.

It allows you to create animations, interactive stories, and simple games.

It supports multiple languages, so it is accessible to learners across Nigeria and the world.

It has a large online community where students can share their projects and learn from others.

What can you create with Scratch? You can build a quiz game about Nigerian capitals, animate a story in your local language, or design a simple platformer game where a character runs through Lagos streets. The possibilities are very creative and fun.

Why is Scratch good for JSS 2 students? Because it removes the fear of making mistakes. Since you are just clicking and dragging blocks, there are no complicated error messages to worry about. You focus on understanding how programming logic works, and that understanding transfers to other languages later.

Python: A Powerful and Simple Language

Python is one of the most popular programming languages in the world today. It was created by a Dutch programmer named Guido van Rossum and first released in 1991. What makes Python special is how clean and simple its code looks compared to most other programming languages.

Python uses plain English words like print, input, if, and while, which makes it very readable. Even someone who has never coded before can look at a simple Python program and roughly understand what it is doing.

Features of Python:

Its syntax (grammar rules) is simple and very readable. Programs written in Python tend to look neat and organized.

It is a versatile language, meaning it can be used for many different things including web development, data science, automation, artificial intelligence, and even building games.

Python has a large library of ready-made tools called modules that programmers can use to save time.

It works on Windows, Mac, and Linux computers, making it widely accessible.

It is free to download and use.

A Simple Python Example:

Imagine you want to write a program that greets a student by name. In Python, it would look something like this:

name = input("Enter your name: ") print("Welcome to Digital Tech Note, " + name + "!")

When a student runs this program and types their name, the computer will display a welcome message. Simple, right? That is the beauty of Python.

How is Python used in Nigeria? Many Nigerian tech companies and startups use Python for building backend systems, analyzing data, and creating machine learning tools. Organizations working on fintech solutions, health tech platforms, and educational software often rely on Python because it is powerful yet easy to maintain.

For JSS 2 students, Python may feel slightly more challenging than Scratch, but it is worth learning because it is a real-world tool used by professional developers all over the globe.


Comparison: Scratch vs Python

To help you understand both languages better, here is a side-by-side comparison:

Scratch uses drag-and-drop blocks while Python uses typed text commands.

Scratch is best for complete beginners and young learners while Python is suitable for beginners who are ready for real coding.

Scratch is mostly used to create games, animations, and stories while Python is used in web development, data science, apps, and more.

Scratch does not require installation and runs in a browser while Python requires installation or an online editor like replit.com.

Scratch has no complex syntax rules while Python has simple but real syntax that must be followed.

Both languages are excellent starting points, and many programming teachers recommend starting with Scratch before moving to Python.


Practical Applications of Programming in Nigeria

Programming is not just a classroom topic. It is actively changing how things work in Nigeria across many sectors:

In banking and finance, apps like Opay, Palmpay, and Kuda Bank were all built using programming. These apps help millions of Nigerians send and receive money without going to the bank.

In education, platforms like Passnownow, Myschool, and various CBT software used for JAMB, NECO, and WAEC are all products of programming. They have made learning and examination accessible to more students.

In health, hospital management systems in many Nigerian hospitals now use software to book appointments, manage patient records, and track medicine stock. These systems were created through programming.

In agriculture, some Nigerian agri-tech startups use programming to help farmers track weather patterns, manage crop yields, and connect with buyers online.

In entertainment, many Nigerian content creators use programmed tools for video editing, website building, and social media management.

As a JSS 2 student today, you are living in the generation where knowing how to program could be your ticket to solving real Nigerian problems and building something great.


Ethical Considerations and Digital Safety

As you begin your journey into programming, there are important values and safety rules to keep in mind:

Use your skills responsibly. Programming is powerful, and that power can be used for good or for harm. Always use your knowledge to build and help, not to damage systems or steal data.

Respect intellectual property. If you use someone else's code or project, give credit to the original creator. Do not copy and present another person's work as your own.

Protect personal information. Never write programs that collect people's private information without their consent. Privacy matters, and responsible programmers always protect it.

Avoid cybercrime. In Nigeria, cybercrime is illegal and punishable under the Cybercrimes Act. Using programming skills to hack, scam, or defraud people is a serious crime with heavy penalties.

Be honest online. Whether you are sharing a project or asking for help in a coding community, always be truthful and respectful.


Classroom and Home Activities

Activity 1: Explore Scratch Online Visit scratch.mit.edu using your school computer or phone. Create a free account and explore the tutorial section. Try building a simple animation of your name dancing on the screen.

Activity 2: Python Hello World Using an online Python editor like replit.com, type the following and run it: print("Hello, Nigeria!") Observe what happens and try changing the message to include your own name.

Activity 3: Match the Language On a sheet of paper, draw two columns. In one column, write the names of five apps or websites you use (for example, WhatsApp, YouTube, a banking app). In the second column, research or guess what programming language might have been used to build each one.

Activity 4: Group Discussion In groups of three or four, discuss this question: "If you could build any app to solve a problem in Nigeria, what would it be and what would it do?" Share your ideas with the class.


Assessment Questions

Objective Questions:

  1. Which of the following best defines programming? A. Typing documents on a computer B. Writing instructions that tell a computer what to do C. Designing images using software D. Connecting computers to the internet

  2. Which type of programming language is closest to human language? A. Machine language B. Assembly language C. High-level language D. Binary language

  3. Scratch was developed by which institution? A. Harvard University B. University of Lagos C. Massachusetts Institute of Technology (MIT) D. Cambridge University

  4. Which of the following is an example of a high-level programming language? A. Binary B. Assembly C. Python D. Machine code

  5. What does a compiler do in programming? A. It connects the computer to the internet B. It converts high-level language into machine language C. It stores programs on the hard drive D. It creates graphics for games

Theory Questions:

  1. Define programming and explain the difference between a programmer and a program.

  2. Compare and contrast Scratch and Python as programming languages, mentioning at least three differences between them.

  3. Explain three reasons why programming is important for Nigerian students in the 21st century.


Summary

In this lesson, you learned that programming means writing instructions that tell a computer what to do. A computer program is a set of those instructions designed to complete a specific task. Programming is important because it drives technology, creates jobs, teaches problem-solving, and empowers people to create digital solutions.

There are three main types of programming languages: low-level languages (like machine language and assembly language), middle-level languages (like C), and high-level languages (like Python, Scratch, and Java).

Scratch is a beginner-friendly, block-based programming tool created by MIT, ideal for young learners who want to create games and animations without typing code. Python is a powerful, text-based high-level language known for its simple and readable syntax, widely used by professionals all over the world including in Nigeria's growing tech industry.


Conclusion

The world is running on code. Every app you enjoy, every website you visit, and every system that powers modern Nigeria was built by someone who understood programming. As a JSS 2 student, you are at the perfect stage to begin your own programming journey.

You do not need to master everything at once. Starting with Scratch to understand the logic and then progressing to Python is a smart and proven path. The skills you develop now, thinking logically, solving problems step by step, and creating with technology, will stay with you for life.

Nigeria needs more young people who can build, not just consume. Programming gives you that power.


Frequently Asked Questions (FAQ)

Q1: What is programming in simple terms? Programming is the process of writing instructions that tell a computer how to perform a task. These instructions are written using special languages called programming languages.

Q2: Which programming language is best for JSS 2 students in Nigeria? Scratch is the most recommended for absolute beginners because it uses visual blocks instead of text. Once you are comfortable with programming logic, Python is an excellent next step.

Q3: Can I learn programming without buying a computer? Yes. You can use school computers or even your smartphone. Tools like Scratch and Replit work on mobile browsers, so you can practice coding without owning a personal computer.

Q4: What is the difference between Scratch and Python? Scratch uses drag-and-drop blocks and is designed for beginners and children. Python uses typed text commands and is used by professional developers. Scratch teaches programming thinking while Python is used in real-world software development.

Q5: Is programming part of the Nigerian school curriculum? Yes. Programming and coding concepts are part of the Digital Technology and Computer Studies curriculum under the Nigerian NERDC framework for both junior and senior secondary schools.

Q6: How can programming help me get a job in Nigeria? Nigeria's tech sector is one of the fastest growing in Africa. Companies in fintech, health tech, edtech, and e-commerce are constantly looking for developers. Learning programming early puts you ahead of the competition and opens doors to well-paying careers both locally and internationally.

I am Echofu George Adah, the Pioneer of Digital Tech Note and the Founder and Chief Executive Officer of GeoWeb Technologies Limited, an information technology company committed to providing cutting-edge ICT solutions.