Python-1- Introduction to Python
Python-1- Introduction to Python
Official.jaikrishnamishra
@gmail.com
Agenda
What is Python…?
Differences between program and scripting language
History of Python
Scope of Python
Why do people use Python?
Installing Python IDE
Who uses python today
What can I do with python
A Sample Code
Python code execution
Running Python
What is Python…?
Python is a general purposeprogramming 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
What’s the difference between Scripting and Programming Languages?
• Basically, all scripting languages are programming languages.
• The theoretical difference between the two is that scripting languages do not
require the compilation step and are rather interpreted.
• Generally, compiled programs run faster than interpreted programs because they
are first converted native machine code.
• Also, compilers read and analyze the code only once, and report the errors
collectively that the code might have, but the interpreter will read and analyze the
code statements each time it meets them and halts at that very instance if there is
some error.
• In practice, the distinction between the two is getting blurred owing to improved
computation capabilities of the modern hardware and advanced coding practices.
Differences between program and
scripting language
Program Scripting
a program is executed (i.e. a script is interpreted
the source is first compiled, A "script" is code written in
and the result of that a scripting language. A
compilation is expected) scripting language is
A "program" in general, is a nothing but a type of
sequence of instructions programming language in
written so that a computer which we can write code
can perform certain task. 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
Python’s Benevolent Dictator For Life
• IOT
-Coding in Development Boards(RPi)
• System Administration
-Unix
• Web Application Development
-UI with Tkinter
• Machine Learning
• Software and Website Backend
-Django
Why do people use Python…?
The following primary factors cited by Python users
seem to be these:
Python is object-oriented
Structure supports such concepts as polymorphism, operation
overloading, and multiple inheritance.
Indentation
Indentation is one of the greatest future in Python.
It's free (open source)
Downloading and installing Python is free and easy
Source code is easily accessible
It's powerful
-Dynamic typing
- Built-in types and tools
- Library utilities
- Third party utilities (e.g. Numeric, NumPy, SciPy)
-Automatic memory management
It's portable
-Python runs virtually every major
platform used today
-As long as you have a compatible Python interpreter installed,
Python programs will run in exactly the same manner,
irrespective of platform.
It's mixable
- Python can be linked to components written in other languages easily
- Linking to fast, compiled code is useful to computationally
intensive
problems
- - Python/C
integration is
quite
common
It's easy to use
- No
intermediat
e compile
and link
steps as in
C/ C++
- Python programs are compiled automatically to an
What's the difference between ASCII and Unicode?
• Unicode is a superset of ASCII, and the numbers 0–127 have the same
meaning in ASCII as they have in Unicode. For example, the number 65
means "Latin capital 'A'".
Installing Python
Python is pre-installed on most Unix systems,
including Linux and MAC OS X