0% found this document useful (0 votes)
10 views34 pages

Lecture 1

The document outlines an advanced Python learning plan, covering topics such as Python libraries, automation, and project building. It highlights Python's features, limitations, and various flavors, including CPython and Jython, as well as the differences between Python 2 and Python 3. Additionally, it emphasizes Python's general-purpose nature, ease of learning, and cross-platform compatibility.

Uploaded by

Vibha Tiwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views34 pages

Lecture 1

The document outlines an advanced Python learning plan, covering topics such as Python libraries, automation, and project building. It highlights Python's features, limitations, and various flavors, including CPython and Jython, as well as the differences between Python 2 and Python 3. Additionally, it emphasizes Python's general-purpose nature, ease of learning, and cross-platform compatibility.

Uploaded by

Vibha Tiwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

Learn Python

By Dr. Vibha Tiwari


Advanced Python Learning Plan

01 02 03 04 05

Advanced Python Automation in


Python Python Libraries Python Python Projects
Pandas,Numpy,Matpl Weight Converter
Introduction To Python Iterators , Modules, Project Building,
otlib GUI Using Python,
and Python Data Decorators, List
Card Game Using
Structures Comprehension
Python
Why One Should use PYTHON
?

What can I do in PYTHON


WHY ?
Introduction
• Python is general purpose , High-level programming
language
Introduction
• Python is general purpose , High-level programming
language
Data Processing
Signal Processing
Pygame
Maya Python
Music Software
Web site development frame work
Introduction
• Python is general purpose , High-level programming
language
Types of Programming
languages

High-level Low-level
language language

• Python • Machine
• C languages
• C++
• Perl • Assembly
• Java languages
Two kind of program processes:

• Interpreters

• Compilers
INTERPRETER

Input It takes a single line of code or instruction at a


time.

Output It does not produce any intermediate object


code.

Working mechanism Compilation and execution take place


simultaneously.

Speed Slower

Memory It requires less memory as it does not create


intermediate object code.

Errors Displays error of each line one by one.

Error detection Easier comparatively


COMPILERS

Input It takes an entire program at a time.

Output It generates intermediate object code.

Working mechanism The compilation is done before execution.

Speed Comparatively faster

Memory Memory requirement is more due to the


creation of object code.

Errors Display all errors after compilation, all at the


same time.

Error detection Difficult


• Programming languages like C, C++, Java, etc use compiler.
• Programming languages like Python, Ruby, PHP, etc. use an
interpreter
History

Guido van Rossum

• At National Research Institute for Mathematics and


Computer Science in Netherland.
• But officially Python was made available to public in 1991.
• The official Date of Birth for Python is : Feb 20th 1991.
Python is :
1. High-level programming language.
2. Fast to learn and fast to develop application.
3. Available for many platforms.
4. Implement complex logic with very few lines of code.
Example
• To Print “Welcome to Python”
• To print multiplication of two given numbers
• To print addition of two numbers
For example..
Features of Python

1. Simple and easy to learn


2. Freeware and Open Source: We can use Python software without
any licence and it is freeware.
3. High Level Programming language
4. Platform Independent: Once we write a Python program, it can
run on any platform without rewriting once again.
5. Portability: Python programs are portable. ie we can migrate
from one platform to another platform very easily. Python
programs will provide same results on any paltform.
6. Dynamically Typed: In Python we are not required to declare
type for variables. Whenever we are assigning the value, based
on value, type will be allocated automatically. ( Java, C etc are
Statically Typed Languages as we have to provide type at the
beginning only.)
7. Both Procedure Oriented and Object Oriented: Python
language supports both Procedure oriented (like C, pascal etc)
and object oriented (like C++,Java) features. Hence we can get
benefits of both like security and reusability etc
8. Interpreted: We are not required to compile Python programs
explcitly. Internally Python interpreter will take care that compilation.
If compilation fails interpreter raised syntax errors. Once compilation
success then PVM (Python Virtual Machine) is responsible to execute
9. Extensive Library: Python has a rich inbuilt library. Being a
programmer we can use this library directly and we are not
responsible to implement the functionality.
Limitations of Python:

• Performance wise not up to the mark because it is interpreted


language.
• Not using for mobile Applications
Flavors of Python
1.CPython:: It is the standard flavor of Python. It can be used to work with
C lanugage Applications
2. Jython or JPython: It is for Java Applications. It can run on JVM
3. IronPython: It is for C#.Net platform
4.PyPy: The main advantage of PyPy is performance will be improved
because JIT compiler is available inside PVM.
5.RubyPython: For Ruby Platforms
6. AnacondaPython: It is specially designed for handling large volume of
data processing.
...
Python Versions

• Python 1.0V introduced in Jan 1994


• Python 2.0V introduced in October 2000
• Python 3.0V introduced in December 2008
PYTHON 2 VS. PYTHON 3

1. Python 2 is legacy, Python 3 is the present and future.


2. Python 3 was released in 2008.
3. Python 3 don’t have enough libraries.
4. That’s why python 2 is present and still ON.
• Python is a cross-platform programming language, meaning, it
runs on multiple platforms like Windows, Mac OS X, Linux, Unix
etc.
• It is free and open source.
• Python is an easy to learn, powerful programming language. It
has efficient high-level data structures and a simple but
effective approach to object-oriented programming.
• Python’s syntax and dynamic typing, together with its
interpreted nature, make it an ideal language for scripting and
rapid application development in many areas on most
platforms

You might also like