Learning Objectives
• Students will be able to learn about the introduction of
python programming.
• Learn the different usage of python.
Programming language
is really a set of names that a computer
has encodings for, such that the names
make the computer do expected actions
and interpret our data in expected ways.
Program
is a description in a programming language of a
process that achieves some result that is useful
to someone.
A program can be small (like one that
implements a calculator) or huge (like one your
bank uses to track all of its accounts).
What is Python?
a popular programming language used very often for Web and
media programming.
It was created by Guido van Rossum, and released in 1991.
He named his language for the famous British comedy troupe
Monty Python.
The Web search engine Google uses Python.
The media company Industrial Light & Magic also uses Python.
Python is used for:
web development (server-side)
software development
mathematics
system scripting
What can Python do?
can be used on a server to create web applications.
can be used alongside software to create workflows.
can connect to database systems. It can also read and modify
files.
can be used to handle big data and perform complex
mathematics.
can be used for rapid prototyping, or for production-ready
software development.
Why Python?
works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
has a simple syntax similar to the English language.
Python is easy to learn, easy to read, very flexible,but not as efficient as
other programming languages.
has syntax that allows developers to write programs with fewer lines than
some other programming languages.
runs on an interpreter system, meaning that code can be executed as soon
as it is written. This means that prototyping can be very quick.
can be treated in a procedural way, an object-oriented way or a functional
way.
Before we begin the actual coding
part, we want to clear a few things.
1. Fear of coding
Programming may feel intimidating for beginners. However, always
keep in mind that learning to code is just another skill. If you invest
time, you will learn it for sure.
2. Programming is a language
Similar to languages like English, programming is also a language
to interact with computers.
You will just need to remember a few instructions and rules.
And you can use the same instructions (syntax) to create a
wide variety of awesome programs.
3. Math for programming
Learning to code involves a lot of logic and trial-and-error, but
nothing beyond basic arithmetic.
Now, we are ready to learn the fundamentals of Python.