SlideShare a Scribd company logo
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
Ad

More Related Content

What's hot (20)

Python ppt
Python pptPython ppt
Python ppt
Mohita Pandey
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Ayshwarya Baburam
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
TIB Academy
 
Python basics
Python basicsPython basics
Python basics
Jyoti shukla
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
Nowell Strite
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYAChapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
Introduction To Python | Edureka
Introduction To Python | EdurekaIntroduction To Python | Edureka
Introduction To Python | Edureka
Edureka!
 
Python
PythonPython
Python
Learnbay Datascience
 
Python PPT
Python PPTPython PPT
Python PPT
Edureka!
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
amiable_indian
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019
Samir Mohanty
 
Programming with Python
Programming with PythonProgramming with Python
Programming with Python
Rasan Samarasinghe
 
Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
Python basics
Python basicsPython basics
Python basics
RANAALIMAJEEDRAJPUT
 
Introduction to python
 Introduction to python Introduction to python
Introduction to python
Learnbay Datascience
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Edureka!
 
Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming
KrishnaMildain
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
Swarit Wadhe
 
Python Presentation
Python PresentationPython Presentation
Python Presentation
Narendra Sisodiya
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its Applications
Abhijeet Singh
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
TIB Academy
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
Nowell Strite
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYAChapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
Introduction To Python | Edureka
Introduction To Python | EdurekaIntroduction To Python | Edureka
Introduction To Python | Edureka
Edureka!
 
Python PPT
Python PPTPython PPT
Python PPT
Edureka!
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
amiable_indian
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019
Samir Mohanty
 
Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Edureka!
 
Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming
KrishnaMildain
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
Swarit Wadhe
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its Applications
Abhijeet Singh
 

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

python programminig and introduction.pptx
python programminig and introduction.pptxpython programminig and introduction.pptx
python programminig and introduction.pptx
urvashipundir04
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
Sujith Kumar
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
LakshmiNarayanaReddy48
 
Introduction python
Introduction pythonIntroduction python
Introduction python
Jumbo Techno e_Learning
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
anaveenkumar4
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
ANIKULSAIKH
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
R.h. Himel
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
Venkat Projects
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
AyushDutta32
 
Python basic
Python basicPython basic
Python basic
radhikaadroja
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
hemantmohite6
 
Introduction to the Python
Introduction to the PythonIntroduction to the Python
Introduction to the Python
BMS Institute of Technology and Management
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
guobichrng
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
priyanshupanchal8
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHON
RuchiNagar3
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
AnirudhaGaikwad4
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
 
Introduction-to-Python-Programming1.pptx
Introduction-to-Python-Programming1.pptxIntroduction-to-Python-Programming1.pptx
Introduction-to-Python-Programming1.pptx
vijayalakshmi257551
 
python programminig and introduction.pptx
python programminig and introduction.pptxpython programminig and introduction.pptx
python programminig and introduction.pptx
urvashipundir04
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
Sujith Kumar
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
anaveenkumar4
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
ANIKULSAIKH
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
R.h. Himel
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
AyushDutta32
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
guobichrng
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHON
RuchiNagar3
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
 
Introduction-to-Python-Programming1.pptx
Introduction-to-Python-Programming1.pptxIntroduction-to-Python-Programming1.pptx
Introduction-to-Python-Programming1.pptx
vijayalakshmi257551
 
Ad

More from urvashipundir04 (20)

stack in python using different datatypes.pptx
stack in python using different datatypes.pptxstack in python using different datatypes.pptx
stack in python using different datatypes.pptx
urvashipundir04
 
Game Playing in Artificial intelligence.pptx
Game Playing in Artificial intelligence.pptxGame Playing in Artificial intelligence.pptx
Game Playing in Artificial intelligence.pptx
urvashipundir04
 
extended modelling in dbms using different.pptx
extended modelling in dbms using different.pptxextended modelling in dbms using different.pptx
extended modelling in dbms using different.pptx
urvashipundir04
 
PRODUCTION SYSTEM in data science .pptx
PRODUCTION SYSTEM in data science  .pptxPRODUCTION SYSTEM in data science  .pptx
PRODUCTION SYSTEM in data science .pptx
urvashipundir04
 
Presentation1 in datamining using techn.pptx
Presentation1 in datamining using techn.pptxPresentation1 in datamining using techn.pptx
Presentation1 in datamining using techn.pptx
urvashipundir04
 
Dependency modelling in data mining.pptx
Dependency modelling in data mining.pptxDependency modelling in data mining.pptx
Dependency modelling in data mining.pptx
urvashipundir04
 
INTRODUCTION to datawarehouse IN DATA.pptx
INTRODUCTION to datawarehouse IN DATA.pptxINTRODUCTION to datawarehouse IN DATA.pptx
INTRODUCTION to datawarehouse IN DATA.pptx
urvashipundir04
 
SOCIAL NETWORK ANALYISI in engeenireg.pptx
SOCIAL NETWORK ANALYISI in engeenireg.pptxSOCIAL NETWORK ANALYISI in engeenireg.pptx
SOCIAL NETWORK ANALYISI in engeenireg.pptx
urvashipundir04
 
datamining in engerring using different techniques.pptx
datamining in engerring using different techniques.pptxdatamining in engerring using different techniques.pptx
datamining in engerring using different techniques.pptx
urvashipundir04
 
datamining IN Artificial intelligence.pptx
datamining IN Artificial intelligence.pptxdatamining IN Artificial intelligence.pptx
datamining IN Artificial intelligence.pptx
urvashipundir04
 
Underfitting and Overfitting in Machine Learning.pptx
Underfitting and Overfitting in Machine Learning.pptxUnderfitting and Overfitting in Machine Learning.pptx
Underfitting and Overfitting in Machine Learning.pptx
urvashipundir04
 
introduction values and best practices in
introduction values and best practices inintroduction values and best practices in
introduction values and best practices in
urvashipundir04
 
ppt on different topics of circular.pptx
ppt on different topics of circular.pptxppt on different topics of circular.pptx
ppt on different topics of circular.pptx
urvashipundir04
 
list in python and traversal of list.pptx
list in python and traversal of list.pptxlist in python and traversal of list.pptx
list in python and traversal of list.pptx
urvashipundir04
 
ermodelN in database management system.ppt
ermodelN in database management system.pptermodelN in database management system.ppt
ermodelN in database management system.ppt
urvashipundir04
 
libraries in python using different .pptx
libraries in python using different .pptxlibraries in python using different .pptx
libraries in python using different .pptx
urvashipundir04
 
tuple in python is an impotant topic.pptx
tuple in python is an impotant topic.pptxtuple in python is an impotant topic.pptx
tuple in python is an impotant topic.pptx
urvashipundir04
 
ANIMATION in computer graphics using 3 D.pptx
ANIMATION in computer graphics using 3 D.pptxANIMATION in computer graphics using 3 D.pptx
ANIMATION in computer graphics using 3 D.pptx
urvashipundir04
 
dispaly subroutines in computer graphics .pptx
dispaly subroutines in computer graphics .pptxdispaly subroutines in computer graphics .pptx
dispaly subroutines in computer graphics .pptx
urvashipundir04
 
loopin gstatement in python using .pptx
loopin gstatement in python using  .pptxloopin gstatement in python using  .pptx
loopin gstatement in python using .pptx
urvashipundir04
 
stack in python using different datatypes.pptx
stack in python using different datatypes.pptxstack in python using different datatypes.pptx
stack in python using different datatypes.pptx
urvashipundir04
 
Game Playing in Artificial intelligence.pptx
Game Playing in Artificial intelligence.pptxGame Playing in Artificial intelligence.pptx
Game Playing in Artificial intelligence.pptx
urvashipundir04
 
extended modelling in dbms using different.pptx
extended modelling in dbms using different.pptxextended modelling in dbms using different.pptx
extended modelling in dbms using different.pptx
urvashipundir04
 
PRODUCTION SYSTEM in data science .pptx
PRODUCTION SYSTEM in data science  .pptxPRODUCTION SYSTEM in data science  .pptx
PRODUCTION SYSTEM in data science .pptx
urvashipundir04
 
Presentation1 in datamining using techn.pptx
Presentation1 in datamining using techn.pptxPresentation1 in datamining using techn.pptx
Presentation1 in datamining using techn.pptx
urvashipundir04
 
Dependency modelling in data mining.pptx
Dependency modelling in data mining.pptxDependency modelling in data mining.pptx
Dependency modelling in data mining.pptx
urvashipundir04
 
INTRODUCTION to datawarehouse IN DATA.pptx
INTRODUCTION to datawarehouse IN DATA.pptxINTRODUCTION to datawarehouse IN DATA.pptx
INTRODUCTION to datawarehouse IN DATA.pptx
urvashipundir04
 
SOCIAL NETWORK ANALYISI in engeenireg.pptx
SOCIAL NETWORK ANALYISI in engeenireg.pptxSOCIAL NETWORK ANALYISI in engeenireg.pptx
SOCIAL NETWORK ANALYISI in engeenireg.pptx
urvashipundir04
 
datamining in engerring using different techniques.pptx
datamining in engerring using different techniques.pptxdatamining in engerring using different techniques.pptx
datamining in engerring using different techniques.pptx
urvashipundir04
 
datamining IN Artificial intelligence.pptx
datamining IN Artificial intelligence.pptxdatamining IN Artificial intelligence.pptx
datamining IN Artificial intelligence.pptx
urvashipundir04
 
Underfitting and Overfitting in Machine Learning.pptx
Underfitting and Overfitting in Machine Learning.pptxUnderfitting and Overfitting in Machine Learning.pptx
Underfitting and Overfitting in Machine Learning.pptx
urvashipundir04
 
introduction values and best practices in
introduction values and best practices inintroduction values and best practices in
introduction values and best practices in
urvashipundir04
 
ppt on different topics of circular.pptx
ppt on different topics of circular.pptxppt on different topics of circular.pptx
ppt on different topics of circular.pptx
urvashipundir04
 
list in python and traversal of list.pptx
list in python and traversal of list.pptxlist in python and traversal of list.pptx
list in python and traversal of list.pptx
urvashipundir04
 
ermodelN in database management system.ppt
ermodelN in database management system.pptermodelN in database management system.ppt
ermodelN in database management system.ppt
urvashipundir04
 
libraries in python using different .pptx
libraries in python using different .pptxlibraries in python using different .pptx
libraries in python using different .pptx
urvashipundir04
 
tuple in python is an impotant topic.pptx
tuple in python is an impotant topic.pptxtuple in python is an impotant topic.pptx
tuple in python is an impotant topic.pptx
urvashipundir04
 
ANIMATION in computer graphics using 3 D.pptx
ANIMATION in computer graphics using 3 D.pptxANIMATION in computer graphics using 3 D.pptx
ANIMATION in computer graphics using 3 D.pptx
urvashipundir04
 
dispaly subroutines in computer graphics .pptx
dispaly subroutines in computer graphics .pptxdispaly subroutines in computer graphics .pptx
dispaly subroutines in computer graphics .pptx
urvashipundir04
 
loopin gstatement in python using .pptx
loopin gstatement in python using  .pptxloopin gstatement in python using  .pptx
loopin gstatement in python using .pptx
urvashipundir04
 
Ad

Recently uploaded (20)

DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Journal of Soft Computing in Civil Engineering
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 

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