INTRODUCTION TO PROGRAMMING IN PYTHON..EPISODE 1

in #programming9 years ago


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.

 

  1.  Get a list of age  A1, A2, A3......AN
  2. Assume A1 is the Largest , Largest=A1
  3. Take the next number from the list as Ai and do the following
  4. If Largest is less than Ai, Then
  5.      Largest=Ai
  6. If Ai is the last age in the list
  7.     Print value stored in Largest, continue
  8. 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:

  1. A compiler to compile program to binary format.
  2. An interpreter to execute the program directly.
  3. 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.

Watch out for Episode 2, We shall begin by writing basic programs in python in our next Tutorial.

Thanks guys and don't forget to UP VOTE if you learnt something , RESTEEM to your friends and if                    you have any query or question feel free to COMMENT. 






Sort:  

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

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.076
BTC 63447.16
ETH 1663.05
USDT 1.00
SBD 0.42