Programming
1
What is Language?
Language is a mode of communication that
is used to share ideas, opinions with each
other. For example, if we want to teach
someone, we need a language that is
understandable by both communicators.
What is a Programming
Language?
A programming language is a computer language
that is used by programmers (developers) to
communicate with computers. It is a set of
instructions written in any specific language ( C,
C++, C#, Java, Python) to perform a specific task.
Types of Programming Languages
1. Low-level programming language
is machine-dependent (0s and 1s) programming
language. The processor runs low- level
programs directly without the need of a compiler
or interpreter, so the programs written in low-
level language can be run very fast. Machine
Language, Assembly Language
Types of Programming Languages
2. High-level programming language
This programming language requires a compiler
or interpreter to translate the program into
machine language (execute the program). It is
easy to read, write, and maintain. Python, Java,
JavaScript, PHP, C#, …...
Introduction to Python
• Python was created in 1990 by Guido Van
Rossum in Holland.
• Python runs on Mac, Linux, Windows, and
many other platforms.
• High level: you don't have to deal with low-
level machine details.
Introduction to Python
Python has been growing a lot recently partly
because of its many uses in the following
areas:
Data Analysis: it is a great language to
experiment with and has tons of libraries and tools
to handle data, create models, visualize results and
even deploy solutions. This is used in areas like
Finance, E-commerce, and Research.
Introduction to Python
Web Development: frameworks like Django and
Flask allow the development of web applications,
API's, and websites.
Machine Learning: Tensorflow and Pytorch are
some of the libraries that allow scientists and the
industry to develop and deploy Artificial Intelligence
solutions in Image Recognition, Health, Self-driving
cars, and many other fields.
Installing Python 3
Visit https://www.python.org/downloads/ and
download the latest version. The installation is just
like any other Windows-based software.
First Steps
There are two ways of using Python to run your
program - using the interactive interpreter prompt
or using a source file.
• Using The Interpreter Prompt:
Open the terminal in your operating and typing
python and pressing enter key.
you should see >>> where you can start typing stuff.
This is called the Python interpreter prompt.
First Steps
• Using The Interpreter Prompt:
First Steps
• Using The Interpreter Prompt:
How to Quit the Interpreter Prompt
If you are using the Windows command prompt,
press ctrl+z followed by the enter key.
Or:
Write exit() followed by the enter key.
First Steps
• source file:
We cannot type out our program at the interpreter
prompt every time we want to run something, so we
have to save them in files and can run our programs
any number of times.
To create our Python source files, we need an editor
software where you can type and save.
First Steps
Choosing An Editor :
• A good programmer’s editor will make your life
easier in writing the source files.
• A good editor will help you write Python programs
easily, making your journey more comfortable
and helps you reach your destination (achieve
your goal) in a much faster and safer way.
First Steps
Choosing An Editor :