11
Most read
19
Most read
20
Most read
INTRODUCTION
TO
PYTHON
Session-1
M. SUJITH KUMAR
sujithmuramshetti@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 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.
the source is first compiled,
and the result of that
compilation is expected)
 A "program" in general, is a
sequence of instructions
written so that a computer
can perform certain task.
 a script is interpreted
 A "script" is code written in
a scripting language. A
scripting language is nothing
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
Why was python created?
"My original motivation for creating Python was
the perceived need for a higher level language in
the Amoeba [Operating Systems] project.
I realized that the development of system
administration utilities in C was taking too long.
Moreover, doing these things in the Bourne shell
wouldn't work for a variety of reasons. ...
So, there was a need for a language that would
bridge the gap between C and the shell”
- Guido Van Rossum
Scope of Python
 Science
- Bioinformatics
 System Administration
-Unix
-Web logic
-Web sphere
 Web Application Development
-CGI
-Jython – Servlets
 Testing scripts
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.
 Simple and Readable Syntax:Python emphasizes
code readability and simplicity. Its syntax is
clean and easy to understand, making it an
excellent choice for beginners .
 Interpreted Language:Python is an interpreted
language, meaning code is executed line-by-line
by the Python interpreter. This allows for quick
testing, debugging, and prototyping without the
need for compiling, making development faster
and more flexible
 Dynamically Typed: Python is dynamically typed,
meaning you don't need to declare variable types
explicitly.
 x = 10 # x is an integer
 y = "Hello" # y is a string
 Extensive Standard Library
 Python comes with a comprehensive standard library
that includes modules for a wide range of tasks, from
file handling, web development, and data processing
to system operations, network programming, and
more.
 Cross-Platform Compatibility
 Python is cross-platform, meaning it can run on
various operating systems, including Windows,
macOS, and Linux, without requiring
modification.
 Strong Community Support
 Python has a large, active, and supportive
community of developers. This means that a
wealth of resources, including tutorials,
documentation, and forums, are available to help
with problem-solving, learning, and
First program
 print("Hello, World!")
 How it works:
 print() is a built-in function in Python that
outputs the specified message to the console.
Installing Python
 Python is pre-installed on most Unix systems,
including Linux and MAC OS X
 But for in Windows Operating Systems , user can
download from the https://www.python.org/downloads/
- from the above link download latest version of
python IDE and install, recent version is 3.4.1 but
most of them uses version 2.7.7 only
 After installing the
Python Ver#2.7.7, go to
start menu then click on
python 2.7 in that one
you can select python
(command line) it is
prompt with >>>
Who uses python today…
 Python is being applied in real revenue-generating products
by real companies. For instance:
 Google makes extensive use of Python in its web search
system, and employs Python’s creator.
 Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm, and IBM
use Python for hardware testing.
 ESRI uses Python as an end-user customization tool for its
popular GIS mapping products.
 The YouTube video sharing service is largely written in
Python
What can I do with Python…?
 System programming
 Graphical User Interface Programming
 Internet Scripting
 Component Integration
 Database Programming
 Gaming, Images, XML , Robot and more
Enough to understand the code
 Indentation matters to code meaning
- Block structure indicated by indentation
 First assignment to a variable creates it
- Variable types don’t need to be declared.
- Python figures out the variable types on its own.
 Assignment is = and comparison is ==
 For numbers + - * / % are as expected
- Special use of + for string concatenation and % for string
formatting (as in C’s printf)
 Logical operators are words (and, or, not) not symbols
 The basic printing command is print
Python Code Execution
 Python’s traditional runtime execution model: source code you
type is translated to byte code, which is then run by the Python
Virtual Machine. Your code is automatically compiled, but then
it is interpreted.
Source code extension is .py
Byte code extension is .pyc (compiled python code)
Running Python
Once you're inside the Python interpreter, type in commands at will.
• Examples:
>>> print 'Hello world'
Hello world
# Relevant output is displayed on subsequent lines without the >>>
symbol
>>> x = [0,1,2]
# Quantities stored in memory are not displayed by default
>>> x
# If a quantity is stored in memory, typing its name will display it
[0,1,2]
>>> 2+3
5

More Related Content

PPTX
Python - An Introduction
PPTX
Python Seminar PPT
PPT
Python ppt
ODP
Python Presentation
PPTX
Python | What is Python | History of Python | Python Tutorial
PPT
Python Programming ppt
PPTX
introduction to Python (for beginners)
Python - An Introduction
Python Seminar PPT
Python ppt
Python Presentation
Python | What is Python | History of Python | Python Tutorial
Python Programming ppt
introduction to Python (for beginners)

What's hot (20)

PPTX
Presentation on python
DOCX
Seminar report On Python
PPTX
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
PDF
Python Programming Tutorial | Edureka
PPT
programming with python ppt
PPTX
Introduction python
DOCX
Final project report of a game
PDF
Python basic
PPTX
Introduction to-python
PPTX
Python: Modules and Packages
PDF
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
PPT
Chat application
PPTX
Python presentation by Monu Sharma
PDF
Introduction to python
PDF
Data visualization in Python
PPTX
POWER OF PYTHON PROGRAMMING LANGUAGE
PDF
Introduction to python programming
PPTX
Internship Presentation 1 Web Developer
PPTX
Online Job Portal (UML Diagrams)
Presentation on python
Seminar report On Python
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Python Programming Tutorial | Edureka
programming with python ppt
Introduction python
Final project report of a game
Python basic
Introduction to-python
Python: Modules and Packages
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Chat application
Python presentation by Monu Sharma
Introduction to python
Data visualization in Python
POWER OF PYTHON PROGRAMMING LANGUAGE
Introduction to python programming
Internship Presentation 1 Web Developer
Online Job Portal (UML Diagrams)
Ad

Similar to introduction to python in computer graphics.pptx (20)

PPTX
python programminig and introduction.pptx
PPTX
Introduction to python for Beginners
PPTX
Python Programming Draft PPT.pptx
PPTX
Python Tutorial | Python Programming Language
PPTX
Python tutorial for beginners - Tib academy
PPTX
introduction to python in detail including .pptx
PDF
intro.pptx (1).pdf
PPTX
Phython Programming Language
PPTX
Presentation on python
PDF
session5-Getting stated with Python.pdf
PPTX
Python basic
PPTX
Lecture 1.pptx
PPTX
Introduction to the Python
PPTX
Basic Python Introduction Lecture 1.pptx
PPTX
DSA Presentation.pptx pptttttttttttttttt
PPTX
Introduction to python
PPTX
INTRODUCTION-TO-PYTHON
PPTX
Introduction to python
PDF
Research paper on python by Rj
PDF
Python quick guide1
python programminig and introduction.pptx
Introduction to python for Beginners
Python Programming Draft PPT.pptx
Python Tutorial | Python Programming Language
Python tutorial for beginners - Tib academy
introduction to python in detail including .pptx
intro.pptx (1).pdf
Phython Programming Language
Presentation on python
session5-Getting stated with Python.pdf
Python basic
Lecture 1.pptx
Introduction to the Python
Basic Python Introduction Lecture 1.pptx
DSA Presentation.pptx pptttttttttttttttt
Introduction to python
INTRODUCTION-TO-PYTHON
Introduction to python
Research paper on python by Rj
Python quick guide1
Ad

More from urvashipundir04 (20)

PPTX
kewords in python using 35 keywords.pptx
PPTX
stack in python using different datatypes.pptx
PPTX
Game Playing in Artificial intelligence.pptx
PPTX
extended modelling in dbms using different.pptx
PPTX
PRODUCTION SYSTEM in data science .pptx
PPTX
Presentation1 in datamining using techn.pptx
PPTX
Dependency modelling in data mining.pptx
PPTX
INTRODUCTION to datawarehouse IN DATA.pptx
PPTX
SOCIAL NETWORK ANALYISI in engeenireg.pptx
PPTX
datamining in engerring using different techniques.pptx
PPTX
datamining IN Artificial intelligence.pptx
PPTX
Underfitting and Overfitting in Machine Learning.pptx
PPTX
introduction values and best practices in
PPTX
ppt on different topics of circular.pptx
PPTX
list in python and traversal of list.pptx
PPT
ermodelN in database management system.ppt
PPTX
libraries in python using different .pptx
PPTX
tuple in python is an impotant topic.pptx
PPTX
ANIMATION in computer graphics using 3 D.pptx
PPTX
dispaly subroutines in computer graphics .pptx
kewords in python using 35 keywords.pptx
stack in python using different datatypes.pptx
Game Playing in Artificial intelligence.pptx
extended modelling in dbms using different.pptx
PRODUCTION SYSTEM in data science .pptx
Presentation1 in datamining using techn.pptx
Dependency modelling in data mining.pptx
INTRODUCTION to datawarehouse IN DATA.pptx
SOCIAL NETWORK ANALYISI in engeenireg.pptx
datamining in engerring using different techniques.pptx
datamining IN Artificial intelligence.pptx
Underfitting and Overfitting in Machine Learning.pptx
introduction values and best practices in
ppt on different topics of circular.pptx
list in python and traversal of list.pptx
ermodelN in database management system.ppt
libraries in python using different .pptx
tuple in python is an impotant topic.pptx
ANIMATION in computer graphics using 3 D.pptx
dispaly subroutines in computer graphics .pptx

Recently uploaded (20)

PDF
ForSee by Languify Teardown final product management
PPTX
Retail.pptx internet of things mtech 2 nd sem
PDF
Application of smart robotics in the supply chain
PPTX
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
PDF
PhD defense presentation in field of Computer Science
PDF
Computer Networks and Internet Protocol Week-1
PPTX
PPT-HEART-DISEASE[1].pptx presentationss
PDF
Disaster Management_Lecture_ PPT_Dr. Kunjari Mog, NITH.pdf
PDF
Operating systems-POS-U1.2.pdf cse gghhu
PDF
August 2025 Top read articles in International Journal of Database Managemen...
PPTX
highway-150803160405-lva1-app6891 (1).pptx
PPTX
Unit I - Mechatronics.pptx presentation
PPTX
Soumya Das post quantum crypot algorithm
PPTX
Embedded Systems Microcontrollers and Microprocessors.pptx
PDF
Manual variador de corriente directa parker.pdf
PPTX
Cloud Security and Privacy-Module-1.pptx
PPTX
quantum theory on the next future in.pptx
PDF
Recent Trends in Network Security - 2025
PPTX
Downstream processing_in Module1_25.pptx
PPTX
Cloud Security and Privacy-Module-2a.pptx
ForSee by Languify Teardown final product management
Retail.pptx internet of things mtech 2 nd sem
Application of smart robotics in the supply chain
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
PhD defense presentation in field of Computer Science
Computer Networks and Internet Protocol Week-1
PPT-HEART-DISEASE[1].pptx presentationss
Disaster Management_Lecture_ PPT_Dr. Kunjari Mog, NITH.pdf
Operating systems-POS-U1.2.pdf cse gghhu
August 2025 Top read articles in International Journal of Database Managemen...
highway-150803160405-lva1-app6891 (1).pptx
Unit I - Mechatronics.pptx presentation
Soumya Das post quantum crypot algorithm
Embedded Systems Microcontrollers and Microprocessors.pptx
Manual variador de corriente directa parker.pdf
Cloud Security and Privacy-Module-1.pptx
quantum theory on the next future in.pptx
Recent Trends in Network Security - 2025
Downstream processing_in Module1_25.pptx
Cloud Security and Privacy-Module-2a.pptx

introduction to python in computer graphics.pptx

  • 2. 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
  • 3. 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
  • 4. Differences between program and scripting language Program Scripting  a program is executed (i.e. the source is first compiled, and the result of that compilation is expected)  A "program" in general, is a sequence of instructions written so that a computer can perform certain task.  a script is interpreted  A "script" is code written in a scripting language. A scripting language is nothing but a type of programming language in which we can write code to control another software application.
  • 5. 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
  • 6. Why was python created? "My original motivation for creating Python was the perceived need for a higher level language in the Amoeba [Operating Systems] project. I realized that the development of system administration utilities in C was taking too long. Moreover, doing these things in the Bourne shell wouldn't work for a variety of reasons. ... So, there was a need for a language that would bridge the gap between C and the shell” - Guido Van Rossum
  • 7. Scope of Python  Science - Bioinformatics  System Administration -Unix -Web logic -Web sphere  Web Application Development -CGI -Jython – Servlets  Testing scripts
  • 8. 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
  • 9.  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.
  • 10.  Simple and Readable Syntax:Python emphasizes code readability and simplicity. Its syntax is clean and easy to understand, making it an excellent choice for beginners .  Interpreted Language:Python is an interpreted language, meaning code is executed line-by-line by the Python interpreter. This allows for quick testing, debugging, and prototyping without the need for compiling, making development faster and more flexible
  • 11.  Dynamically Typed: Python is dynamically typed, meaning you don't need to declare variable types explicitly.  x = 10 # x is an integer  y = "Hello" # y is a string  Extensive Standard Library  Python comes with a comprehensive standard library that includes modules for a wide range of tasks, from file handling, web development, and data processing to system operations, network programming, and more.
  • 12.  Cross-Platform Compatibility  Python is cross-platform, meaning it can run on various operating systems, including Windows, macOS, and Linux, without requiring modification.  Strong Community Support  Python has a large, active, and supportive community of developers. This means that a wealth of resources, including tutorials, documentation, and forums, are available to help with problem-solving, learning, and
  • 13. First program  print("Hello, World!")  How it works:  print() is a built-in function in Python that outputs the specified message to the console.
  • 14. Installing Python  Python is pre-installed on most Unix systems, including Linux and MAC OS X  But for in Windows Operating Systems , user can download from the https://www.python.org/downloads/ - from the above link download latest version of python IDE and install, recent version is 3.4.1 but most of them uses version 2.7.7 only
  • 15.  After installing the Python Ver#2.7.7, go to start menu then click on python 2.7 in that one you can select python (command line) it is prompt with >>>
  • 16. Who uses python today…  Python is being applied in real revenue-generating products by real companies. For instance:  Google makes extensive use of Python in its web search system, and employs Python’s creator.  Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm, and IBM use Python for hardware testing.  ESRI uses Python as an end-user customization tool for its popular GIS mapping products.  The YouTube video sharing service is largely written in Python
  • 17. What can I do with Python…?  System programming  Graphical User Interface Programming  Internet Scripting  Component Integration  Database Programming  Gaming, Images, XML , Robot and more
  • 18. Enough to understand the code  Indentation matters to code meaning - Block structure indicated by indentation  First assignment to a variable creates it - Variable types don’t need to be declared. - Python figures out the variable types on its own.  Assignment is = and comparison is ==  For numbers + - * / % are as expected - Special use of + for string concatenation and % for string formatting (as in C’s printf)  Logical operators are words (and, or, not) not symbols  The basic printing command is print
  • 19. Python Code Execution  Python’s traditional runtime execution model: source code you type is translated to byte code, which is then run by the Python Virtual Machine. Your code is automatically compiled, but then it is interpreted. Source code extension is .py Byte code extension is .pyc (compiled python code)
  • 20. Running Python Once you're inside the Python interpreter, type in commands at will. • Examples: >>> print 'Hello world' Hello world # Relevant output is displayed on subsequent lines without the >>> symbol >>> x = [0,1,2] # Quantities stored in memory are not displayed by default >>> x # If a quantity is stored in memory, typing its name will display it [0,1,2] >>> 2+3 5