Introduction to Python
Engr. Saqib Hussain
What is Python?
Python is a general-purpose programming language that
is often applied in scripting roles.
So, Python is programming language as well as
scripting language.
Python is also called as Interpreted language.
Differences between program and scripting language
Program Scripting
a program is executed (i.e. a script is interpreted
the source is first compiled,
and the result of that
compilation is expected)
A "program" in general, is a A "script" is code written in
sequence of instructions a scripting language. A
written so that a computer scripting language is nothing
can perform certain task. but a type of programming
language in which we can
write code to control
another software application
History
Invented in the Netherlands, early 90s by Guido van Rossum.
Python was conceived in the late 1980s and its
implementation was started in December 1989.
Guido Van Rossum is fan of ‘Monty Python’s Flying
Circus’, this is a famous TV show in Netherlands.
Named after Monty Python.
Open sourced from the beginning.
Scope of Python
• Web Development.
• Game Development.
• Scientific and Numeric Applications.
• Artificial Intelligence and Machine Learning.
• Software Development.
• Enterprise-level/Business Applications.
• Education programs and training courses.
• Language Development.
Why do people use Python…?
It's free (open source)
Downloading and installing Python is free and easy
Source code is easily accessible.
It is a high-level language
It is interpreted.
It comes with a vast collection of libraries.
It is easy to learn and understand.
It is portable
What can I do with Python?
System programming
Graphical User Interface Programming
Internet Scripting / Web Scrapping
Component Integration
Database Programming
Gaming, Images, XML , Robot and more
Sample Python Code
Installation
Let’s see the tutorial.