INTRODUCTION TO PROGRAMMING IN PYTHON..EPISODE 1
Hello guys, welcome to the first tutorial on python programming language.
Let us begin.
What is Python language??
Python programming language is a an interpreted object oriented programming language that has an easy and readable syntax.
Python programming language is a general purpose programming language that is used in many fields such as:
- Web development
- Cyber Security
- Data Science
- Hardware programming e.g Aduino programming.
In this tutorial we are going to learn how to code/program using python
There are a couple of important terms that you must understand before we can start coding.
What is Programming?
It is basically the writing of a computer program. It is also known to most of the programming community as coding.
What is a Computer program?
It is a set of instructions written in a computer programming language , that perform a specific task in a computer.
Just like we human beings understand each other using a certain language such as English, a computer also understands a programming language for it to perform a specified function. The computer depends on programs for it to perform tasks, even the operating system such Windows or OS X is a program written in a certain programming language.
Who is a Computer Programmer?
This is a person who can write a computer program using a programming language.
What is an Algorithm?
This is a step by step procedure with finite, well defined instruction to solve a certain problem.
we can write a simple algorithm to analyse the largest age in a list of ages.
- Get a list of age A1, A2, A3......AN
- Assume A1 is the Largest , Largest=A1
- Take the next number from the list as Ai and do the following
- If Largest is less than Ai, Then
- Largest=Ai
- If Ai is the last age in the list
- Print value stored in Largest, continue
- Else repeat same process starting from step 3
NOTE:
For an Algorithm to work in a computer, it has to be written down in a computer programming language relating to the steps specified in the algorithm.
What is a programming environment?
This is the first thing that we need to start coding with any Programming Language.
All the things required for programming should be setup before we can start coding.
Things we need include:
- A compiler to compile program to binary format.
- An interpreter to execute the program directly.
- A text editor to write computer program.
In our case we shall be using Pycharm interpreter to run our Python programs.
Download the COMMUNITY VERSION (FREE) of Pycharm from the links below
WINDOWS
https://www.jetbrains.com/pycharm/download/#section=windows
macOS
https://www.jetbrains.com/pycharm/download/#section=mac
Linux
https://www.jetbrains.com/pycharm/download/#section=linux
Elements of programming Language
- Variables
- Keywords
- Basic Operators
- Decision Making
- Loops
- Numbers
- Variables
- Keywords Basic
- Operators Decision
- Making Loops
- Numbers
- Characters
- Arrays
- Strings
- Functions
- File I/O
Don't worry about all this new terms, we are going to learn about them more in the next tutorials.


a time will come when it will be very expensive to higher a coder
very true, in 5 years to come especially here in Kenya,the demand will be really high because of the growth of technology