You're viewing a free preview

Enroll to unlock all lessons, quizzes, assignments, and earn a certificate.

Login to Enroll

Introduction to Python

Welcome to Python Programming

Certificate in Python Programming

15 min

Welcome to Python Programming

By the end of this lesson you will understand what Python is, why it is one of the best first languages to learn, and the kinds of real jobs and projects it opens up here in Zambia and beyond.

What is Python?

Python is a programming language: a way of writing instructions that a computer follows. It was designed to be easy to read, almost like plain English, which is exactly why colleges and companies use it to teach beginners. When you write print("Hello") the computer simply prints the word Hello. No complicated symbols, no fuss.

Python is used everywhere: by banks to process mobile-money transactions, by data analysts studying maize yields, by websites, by scientists, and by students automating boring tasks like renaming hundreds of files. If a computer can do it, there is a good chance Python can tell it how.

Why learn Python first?

  • It is readable. You spend your energy solving the problem, not fighting the language.
  • It is in demand. Python skills appear in many Zambian job adverts for data, finance and software roles, and on freelancing sites like Upwork.
  • It is free. Everything you need runs on a modest computer and costs nothing.
  • It grows with you. The same language takes you from your first print to building real applications.

A taste of what you will write

Here is a tiny program that works out the change from a K100 note after buying airtime:

price = 25
paid = 100
change = paid - price
print("Your change is K", change)

That is real Python. By the middle of this course you will write programs far more useful than this one.

Try It Yourself

  1. Write down three tasks you do on a phone or computer that feel repetitive.
  2. Beside each, imagine a small program doing it for you. Keep this list; you may build one of them by the end of the course.

Key Terms

  • Programming language - a set of words and rules for giving a computer instructions.
  • Code - the instructions you write.
  • Program - a finished set of instructions that does a task.
  • Print - the Python instruction that shows text on the screen.

Summary

Python is a readable, free, widely-used language and an excellent first step into software. In the next lessons you will install it and run your very first program.

Free Resources

New Join Our Community!