0% found this document useful (0 votes)
49 views27 pages

Introduction to Python Programming

This document provides an introduction to the Python programming language. It outlines the history and evolution of Python, describing how it was created in 1989 and released publicly in 1991. Python is directly interpreted rather than requiring compilation, making it easy to use and modify. The document discusses who uses Python and for what purposes, such as web development, data analytics, machine learning, and more. It also covers Python's main features like rapid development, automatic memory management, and object-oriented programming. The installation process for Python on Windows is then outlined.

Uploaded by

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

Introduction to Python Programming

This document provides an introduction to the Python programming language. It outlines the history and evolution of Python, describing how it was created in 1989 and released publicly in 1991. Python is directly interpreted rather than requiring compilation, making it easy to use and modify. The document discusses who uses Python and for what purposes, such as web development, data analytics, machine learning, and more. It also covers Python's main features like rapid development, automatic memory management, and object-oriented programming. The installation process for Python on Windows is then outlined.

Uploaded by

Ankur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd

Introduction to Python Programming

By
Dr. R. Rajeswara Rao
Professor & Head
Dept. of CSE
JNTUK-UCEV
Vizianagaram
Outline
Evaluation of Programming Languages
Introduction to Python
Who uses Python
Features of Python
What can you do with Python
Installation Process to Python
Case study to CV
Conclusion
Languages

Some influential ones:


 FORTRAN
 science / engineering

 COBOL
 business data

 LISP
 logic and AI

 BASIC
 a simple language

3
Introduction
Why Python
Programming
Easy
Useful
Powerful and
Popular
History of Python

Created in 1989 by Guido van Rossum


Created as a scripting language for administrative tasks
Based on All Basic Code (ABC) and Modula-3
 Added extensibility
Named after comic troupe Monty Python
Released publicly in 1991
Growing community of Python developers
Evolved into well-supported programming language

5
Cont:
Compiling and interpreting
 Many languages require you to compile (translate) your
program into a form that the machine understands.
compile execute
source code byte code output
[Link] [Link]

Python is instead directly interpreted into machine


source code interpret
instructions.
[Link]
output

7
Who uses Python
Python Features
Cont…
Cont…
Cont..
Python
Designed to be portable and extensible
 Originally implemented on UNIX
 Programs often can be ported from one operating system to
another without any change

Syntax and design promote good programming practices


and surprisingly rapid development times
 Simple enough to be used by beginning programmers
 Powerful enough to attract professionals

ICP: Chapter 1: Introduction to Python


12 Programming August 29, 2005
Python features Lutz, Programming Python

no compiling or linking rapid development cycle


no type declarations simpler, shorter, more flexible
automatic memory management garbage collection
high-level data types and fast development
operations
object-oriented programming code structuring and reuse, C++
embedding and extending in C mixed language systems
classes, modules, exceptions "programming-in-the-large"
support
dynamic loading of C modules simplified extensions, smaller
binaries
dynamic reloading of C modules programs can be modified without
stopping
Python features Lutz, Programming Python

universal "first-class" object model fewer restrictions and rules

run-time program construction handles unforeseen needs, end-


user coding
interactive, dynamic nature incremental development and
testing
access to interpreter information metaprogramming, introspective
objects
wide portability cross-platform programming
without ports
compilation to portable byte-code execution speed, protecting source
code
built-in interfaces to external system tools, GUIs, persistence,
services databases, etc.
Advanced Programming
Spring 2002 Sep 27, 2020
What can you do with Python
Web development
You can use Python to create web applications on many levels
of Complexity.
There are many excellent python web frame works including
Pyramid
Django and Flask
Data Analytics
Python is the leading language of choice by many data
scientist due to its excellent libraries including
 NumPy and Pandas and its superb Libraries for Data Visualization
like Matplotlib and Seaborn
Cont..
Machine Learning
There are many excellent Machine Learning
Algorithms are available such as:
Scikit-Learn
NLTK and Tensor Flow.
Computer Vision
We can do many Interesting things such as
Face Recognition
Color detection using Opencv and Python
Cont…
IoT( Internet of Things):
The Coding on Raspberry Pi can be performed Using
Python.
Game Development:
Basically we use Python to write the logic of the Game
PyGame Applications can run on Android devices
Web Scraping:
Need to grab data from a website but the site does not have
an API to expose data, then you can use Python to scraping
data
Writing Scripts:
Want to do automate repetitive stuff, such as emails, its not
difficult to automate, once you know the basics of this
language.

Browser Automation:
Perform some neat things such as opening a browser and
posting a Face book status, you can do it with selenium with
Python.

GUI Development:
Build a GUI application ( Desktop App) using Python
modules Tkinter, PyQt to support it.
Language comparison
Tcl Perl Python JavaScript Visual
Basic
Speed development     
regexp   
breadth extensible   
embeddable  
easy GUI   (Tk) 
net/web     
enterprise cross-platform    
I18N    
thread-safe   
database access     
Advanced Programming
Spring 2002 Sep 27, 2020
Python Installation Process
Open the “.msi” downloaded file

Click the “Run”


Button

Then follow the directions to install


Python 3.4.3
Cont..
Cont…
PopularitY of Programming
Language (PYPL)
Jun 2017 compared to a year ago:
Rank Language Share Trend

1 Java 22.7 % -1.2 %

2 Python 16.1 % +3.8 %

3 PHP 9.3 % -0.9 %

4 C# 8.2 % -0.6 %

5 Javascript 7.9 % +0.5 %

6 C++ 6.8 % -0.3 %

7 C 6.6 % -0.1 %

8 Objective-C 3.7 % -1.0 %

9 R 3.6 % +0.4 %

10 Swift 2.8 % -0.2 %


o THANK YOU

You might also like