You are on page 1of 14

Welcome to computer

programming
BY: MONTESA D. SUBIATE
What is Computer programming?
Computer Programming is the process of writing
instructions that get executed by computers.
The instructions, also known as code, are written
in a programming language which the computer
can understand and use to perform a task or
solve a problem
What is a program?
A program is a set of step-by-step instructions that directs
the computer to do the tasks you want it to do and
produce the results you want.
Examples:
What is a programing language?
A set of rules that provides a way of telling a computer
what operations to perform. You will learn about
controlling a computer through the process of
programming.
There are many programming languages: BASIC, COBOL,
Pascal, FORTRAN, C and Python are some examples.
Testing the Program
Debugging is a term used extensively in programming,
debugging means detecting, locating, and correcting bugs
(mistakes), usually by running the program.
These bugs are logic errors, such as telling computer to
repeat an operation but not telling it how to stop
repeating.
Testing the Program
Debugging is a term used extensively in programming,
debugging means detecting, locating, and correcting bugs
(mistakes), usually by running the program.
These bugs are logic errors, such as telling computer to
repeat an operation but not telling it how to stop
repeating.
What is Python?
Python is a widely used high-level programming language
created by Guido van Rossum in the late 1980s.
The language places strong emphasis on code readability and
simplicity, making it possible for programmers to develop
applications rapidly.
Codes that we write in Python have to be interpreted by a
special program known as the Python interpreter, which
we’ll have to install before we can code, test and execute our
Python programs.
What is a Machine Language?
Machine language or Assembly language is the encoding
of instructions in binary so that they can be directly
executed by the computer.
Assembly languages uses a slightly easier format to refer
to the low-level instructions.
Computers can actually only execute programs written in
machine languages.
Two kinds of programs process high-level
languages into low-level languages
An interpreter read a high-level programs and executes it,
meaning that it does what the program say. It processes
the program a little at a time, alternately reading lines
and performing computations.
A compiler read the program and translates it completely
before the program starts running.
Therefore…
The high-level program is called the source code, and the
translated program is called the object code or the
executables.
Once a program is compiles, you can execute it repeatedly
without further translation.
Installing the Interpreter
To install the interpreter for Python, head over to
https://www.python.org/downloads/.
Choose the correct installer for your computer.
The installer to use depends on two factors:
1. The operating system (Windows, Mac OS or Linux)
2. The processor (32-bit vs 64-bit) that you are using
IDLE of Python
Python IDLE – program that comes bundle with our Python
interpreter.
Python Shell

IDLE Shell
The Python Shell allows us to use
Python in interactive mode.
This means we can enter one
command at a time.
Python Shell

IDLE Shell
The Python Shell allows us to use
Python in interactive mode.
This means we can enter one
command at a time.

You might also like