Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† PYTHON FUNDAMENTALS LEVEL 1 PROFESSIONAL ยท Lesson 2 of 9

Module One

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
2
# **PYTHON FUNDAMENTALS LEVEL 1 PROFESSIONAL** ## **Module 1: Introduction to Python Programming**

Module 1: Introduction to Python Programming

Welcome to Python Fundamentals Level 1 Professional! In this module, you will learn what Python is, why people use it, how it works, and the different things you can create with it. You do not need any programming experience to understand this lesson.

Learning Objectives

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

  • Explain what programming means.
  • Define Python programming language.
  • Identify who uses Python and why it is popular.
  • Understand the basic uses of Python.
  • Recognise the difference between programming languages and human languages.
  • Understand how Python instructions are used to communicate with a computer.

1. What Is Programming?

Programming is the process of giving instructions to a computer so that it can perform specific tasks.

Think about how you follow instructions when preparing a meal. Someone might tell you to:

  1. Get a pot.
  2. Pour water into it.
  3. Put the pot on the cooker.
  4. Wait for the water to boil.
  5. Add your noodles.

These are instructions arranged in a particular order. A computer also needs instructions to perform tasks. Programming is how we create those instructions.

Examples of Things Programming Can Do

  • Calculate the total cost of items in a supermarket.
  • Help a school calculate students' examination scores.
  • Power websites and mobile applications.
  • Control robots and machines.
  • Analyse information and produce reports.
  • Help businesses manage customers and payments.

2. What Is Python?

Python is a popular programming language used to give instructions to computers. It allows people to write programs that solve problems and perform useful tasks.

Python is known for having a simple and readable style. This makes it a good programming language for beginners who are learning how to code for the first time.

For example, you can use Python to tell a computer to display a welcome message:

print("Welcome to Python!")

When this instruction runs, the computer displays:

Welcome to Python!

The print() instruction tells Python to display information on the screen. You will learn more about it in a later module.

3. Why Is Python Popular?

Python is used by beginners, students, software developers, researchers, businesses and technology companies. Here are some reasons why it is popular:

3.1 Easy to Read

Python code often looks similar to ordinary English. This makes it easier for beginners to understand what a program is doing.

3.2 Useful for Many Tasks

Python can be used for website development, data analysis, artificial intelligence, automation, cybersecurity and many other technology tasks.

3.3 Large Learning Community

Many people around the world use Python. This means learners can find tutorials, learning materials, examples and answers to common programming questions.

3.4 Free and Open Source

Python is free to download and use. Its source code is also available for people to study and contribute to.

4. What Can You Build with Python?

Python is not just for writing small programs. It can be used to build real-world technology solutions.

4.1 Websites and Web Applications

Python can help developers create websites and web applications. For example, a developer could use Python to build a school management system where students can check their results.

4.2 Data Analysis

Data analysts use Python to organise, examine and understand data. A school could use Python to analyse students' examination scores and identify the subjects where students perform best.

4.3 Artificial Intelligence

Python is widely used in artificial intelligence projects. It can help developers build systems that recognise images, understand text and make predictions from data.

4.4 Automation

Automation means using technology to perform tasks with little or no repeated manual effort.

For example, Python can help a business organise hundreds of files, create reports or process information automatically.

4.5 Cybersecurity

Cybersecurity professionals can use Python to automate security checks, examine computer logs and analyse suspicious activities. These activities should always be performed legally and with proper permission.

4.6 Games

Python can also be used to create simple computer games, such as number guessing games, quizzes and educational games.

5. Who Uses Python?

Python is used by people working in different industries and technology careers.

  • Software Developers: Build applications and software.
  • Data Analysts: Study data and prepare reports.
  • Data Scientists: Use data to discover patterns and make predictions.
  • AI Developers: Build artificial intelligence solutions.
  • Cybersecurity Professionals: Develop tools for security testing and analysis.
  • Web Developers: Build websites and web applications.
  • Students and Researchers: Learn programming and solve research problems.

6. What Is a Programming Language?

A programming language is a language used to write instructions that a computer can process.

Just as people use English, Yoruba, Hausa, Igbo and other languages to communicate, programmers use programming languages to give instructions to computers.

Different programming languages are designed for different types of tasks.

Examples of Programming Languages

  • Python: Used for automation, data analysis, AI and web development.
  • JavaScript: Commonly used to make websites interactive.
  • Java: Used in many business systems and applications.
  • C: Used in systems programming and embedded devices.
  • PHP: Commonly used for server-side web development.

7. How Does Python Work?

When you write Python instructions, you create a program. Python uses a software tool called an interpreter to execute those instructions.

The basic process looks like this:

  1. Write code: You type Python instructions.
  2. Run the program: You ask Python to execute the code.
  3. Python processes the instructions: The interpreter reads and executes the code.
  4. Get the result: The computer performs the task or displays the output.

Example

Imagine you want Python to calculate the total cost of two items.

print(2000 + 1500)

The result will be:

3500

This simple program adds 2,000 and 1,500 and displays the answer. It could represent the total cost of two items purchased from a shop.

8. Where Is Python Used in Real Life?

Python is used in many everyday activities, even when users do not know that Python is involved.

Industry How Python Is Used
Education Calculating examination scores and analysing student performance.
Banking Processing financial information and detecting unusual transactions.
Healthcare Analysing medical research and managing health-related data.
Business Automating reports and organising business information.
Entertainment Supporting game development and media-related systems.
Cybersecurity Analysing security logs and automating authorised security checks.

9. Your First Look at Python Code

Before writing larger programs, it is important to understand that Python code is made up of instructions.

Study this example:

print("My name is Ada")
print("I am learning Python")
print("Python is interesting")

When the program runs, the output will be:

My name is Ada
I am learning Python
Python is interesting

Notice that each print() instruction displays a separate line of information.

10. Practical Activity: Create Your First Python Message

Now it is time to try a simple programming activity. Imagine you are creating a welcome message for a new student joining CRMNuggets.

Your Task

  1. Write a Python instruction that displays your name.
  2. Write another instruction that displays your age.
  3. Write another instruction that displays the words "I am learning Python".

Sample Solution

print("My name is Tunde")
print("I am 13 years old")
print("I am learning Python")

You can replace Tunde with your own name and change the age to your actual age.

11. Important Terms to Remember

Term Meaning
Programming Giving instructions to a computer to perform tasks.
Python A programming language used to build software and solve problems.
Program A set of instructions written for a computer.
Code Instructions written using a programming language.
Interpreter A software tool that executes Python code.
Output The result produced when a program runs.
Automation Using technology to perform tasks automatically.

12. Module Summary

In this module, you have learned that:

  • Programming means giving instructions to a computer.
  • Python is a popular and beginner-friendly programming language.
  • Python is used in web development, data analysis, AI, automation and cybersecurity.
  • Different professionals use Python to solve real-world problems.
  • The Python interpreter executes Python instructions.
  • The print() function displays information on the screen.

13. Knowledge Check

Test what you have learned by answering these questions.

  1. What is programming?
    • A. Playing computer games
    • B. Giving instructions to a computer
    • C. Watching videos
    • D. Drawing pictures
  2. What is Python?
    • A. A programming language
    • B. A computer keyboard
    • C. An operating system
    • D. A web browser
  3. Which Python instruction displays information on the screen?
    • A. show()
    • B. display()
    • C. print()
    • D. write_screen()
  4. Which of these is a use of Python?
    • A. Data analysis
    • B. Artificial intelligence
    • C. Automation
    • D. All of the above
  5. What is a Python interpreter used for?
    • A. Printing documents
    • B. Executing Python code
    • C. Connecting a monitor
    • D. Charging a laptop

Knowledge Check Answers

Click to reveal the correct answers
  1. B โ€” Giving instructions to a computer.
  2. A โ€” A programming language.
  3. C โ€” print().
  4. D โ€” All of the above.
  5. B โ€” Executing Python code.

14. What Is Next?

Congratulations! You have completed Module 1 of Python Fundamentals Level 1 Professional.

In Module 2: Installing Python and Writing Your First Program, you will learn how to install Python, understand the tools used to write Python code, and run your first complete Python program.

Keep practising. Every professional programmer started as a beginner!

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’