SlideShare a Scribd company logo
1 of 17
Python
ā€¢ Python is a popular programming language. It was created by Guido van Rossum, and
released in 1991.
ā€¢ It is used for:
ā€¢ web development (server-side),
ā€¢ software development,
ā€¢ mathematics,
ā€¢ system scripting.
What can Python do?
ā€¢ Python can be used on a server to create web applications.
ā€¢ Python can be used alongside software to create workflows.
ā€¢ Python can connect to database systems. It can also read and modify files.
ā€¢ Python can be used to handle big data and perform complex mathematics.
Why Python?
ā€¢ Python works on different platforms (Windows, Mac, Linux,
Raspberry Pi, etc).
ā€¢ Python has a simple syntax similar to the English language.
ā€¢ Python has syntax that allows developers to write programs with
fewer lines than some other programming languages.
ā€¢ Python runs on an interpreter system, meaning that code can be
executed as soon as it is written. This means that prototyping can be
very quick.
ā€¢ Python can be treated in a procedural way, an object-oriented way or
a functional way.
Getting Python
ā€¢ The most up-to-date and current source code, binaries,
documentation, news, etc., is available on the official website of
Python https://www.python.org/
Python IDLE
ā€¢ Every Python installation comes with an Integrated Development and
Learning Environment. Helps you write code more efficiently
Applications of Python
ā€¢ Python is known for its general-purpose nature that makes it
applicable in almost every domain of software development. Python
makes its presence in every emerging field. It is the fastest-growing
programming language and can develop any application.
1) Web Applications
ā€¢ Python to develop web applications. It provides libraries to handle internet
protocols such as HTML and XML, JSON, Email processing, request,
beautifulSoup, Feedparser, etc. One of Python web-framework named
Django is used on Instagram.
2) Desktop GUI Applications
The GUI stands for the Graphical User Interface, which provides a smooth
interaction to any application. Python provides a Tk GUI library to develop a
user interface. Some popular GUI libraries are given below.
ā€¢ Tkinter or Tk
ā€¢ wxWidgetM
ā€¢ Pyside
ā€¢ Software Development
Python is useful for the software development process. It works as a support
language and can be used to build control and management, testing, etc.
ā€¢ Scientific and Numeric
Python language is the most suitable language for Artificial intelligence or
machine learning. It consists of many scientific and mathematical libraries,
which makes easy to solve complex calculations.
Implementing machine learning algorithms require complex mathematical
calculation. Python has many libraries for scientific and numeric such as
Numpy, Pandas, Scipy, Scikit-learn, etc.
ā€¢ Business Applications
Business Applications differ from standard applications. E-commerce and
ERP are an example of a business application. This kind of application
requires extensively, scalability and readability, and Python provides all these
features.
ā€¢ Audio or Video-based Applications
Python is flexible to perform multiple tasks and can be used to create multimedia
applications. Some multimedia applications which are made by using Python
are TimPlayer, cplay, etc. The few multimedia libraries are given below.
ā€¢ Gstreamer
ā€¢ Pyglet
ā€¢ QT Phonon
ā€¢ Image Processing Application
Python contains many libraries that are used to work with the image. The image
can be manipulated according to our requirements. Some libraries of image
processing are given below.
ā€¢ OpenCV
ā€¢ Pillow
ā€¢ SimpleITK
Python Operators(W3schools)
Operators are used to perform operations on variables and values.
ā€¢ Python divides the operators in the following groups
ā€¢ Arithmetic operators
ā€¢ Assignment Operators
ā€¢ Comparison Operators
ā€¢ Logical Operators
ā€¢ Identity Operators
ā€¢ Membership Operators
ā€¢ Bitwise Operators
Python Data Types (Geeksforgeeks)
ā€¢ Data types are the classification or categorization of data items. It
represents the kind of value that tells what operations can be
performed on a particular data.
Numeric
In Python, numeric data type represent the data which has numeric value. Numeric value can be integer, floating number or even
complex numbers. These values are defined as int, float and complex class in Python.
ā€¢ Integers ā€“ This value is represented by int class. It contains positive or negative whole numbers
(without fraction or decimal). In Python there is no limit to how long an integer value can be.
ā€¢ Float ā€“ This value is represented by float class. It is a real number with floating point representation. It
is specified by a decimal point. Optionally, the character e or E followed by a positive or negative
integer may be appended to specify scientific notation.
ā€¢ Complex Numbers ā€“ Complex number is represented by complex class. It is specified as (real part) +
(imaginary part)j. For example ā€“ 2+3j
Sequence Type
ā€¢ Sequence is the ordered collection of similar or different data types.
Sequences allows to store multiple values in an organized and efficient
fashion. There are several sequence types in Python ā€“
ā€¢ String
ā€¢ List
ā€¢ Tuple
ā€¢ 1) String
ā€¢ String is the collection of one or more characters put in a single quote,
double quote or triple quote. It is represented by str class.
ā€¢ Creating String
ā€¢ Strings in Python can be created using single quotes or double quotes or
even triple quotes.
ā€¢ Accessing elements of String
ā€¢ Individual characters of a String can be accessed by using the method
of Indexing. Indexing allows negative address references to access
characters from the back of the String, e.g. -1 refers to the last
character, -2 refers to the second last character and so on.
2) List
ā€¢ Lists are just like the arrays, declared in other languages which is a ordered collection of data. It is
very flexible as the items in a list do not need to be of the same type.
ā€¢ Creating List
ā€¢ Lists in python can be created by just placing the sequence inside the square bracket [].
List = []
print("Initial blank List: ")
print(List)
List with multiple values
List = ["Geeks", "For", "Geeks"]
print("nList containing multiple values: ")
print(List[0])
print(List[2])
To calculate the length of the list
Print(len(List))
Accessing elements of List
Accessing a element using negative indexing
print("Accessing element using negative indexing")
print the last element of list
print(List[-1])
print the third last element of list
print(List[-3])
3) Tuple
ā€¢ Tuple is also an ordered collection of Python objects. The only
difference between tuple and list is that tuples are immutable i.e.
tuples cannot be modified after it is created. It is represented by tuple
class.
ā€¢ Creating Tuple
ā€¢ Tuples are created by placing a sequence of values separated by
ā€˜commaā€™ with or without the use of parentheses for grouping of the
data sequence

More Related Content

Similar to intro to python.pptx

Introduction_to_Python.pptx
Introduction_to_Python.pptxIntroduction_to_Python.pptx
Introduction_to_Python.pptxVinay Chowdary
Ā 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythonAyshwarya Baburam
Ā 
17575602.ppt
17575602.ppt17575602.ppt
17575602.pptTejaValmiki
Ā 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1Ahmet Bulut
Ā 
Python for katana
Python for katanaPython for katana
Python for katanakedar nath
Ā 
Class_X_PYTHON_J.pdf
Class_X_PYTHON_J.pdfClass_X_PYTHON_J.pdf
Class_X_PYTHON_J.pdfSanjeedaPraween
Ā 
1. python programming
1. python programming1. python programming
1. python programmingsreeLekha51
Ā 
web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh MalothBhavsingh Maloth
Ā 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptxArpittripathi45
Ā 
modul-python-part1.pptx
modul-python-part1.pptxmodul-python-part1.pptx
modul-python-part1.pptxYusuf Ayuba
Ā 
Iot with raspberry pi insustrial training
Iot with raspberry pi insustrial trainingIot with raspberry pi insustrial training
Iot with raspberry pi insustrial trainingPREM NARAYAN MAITHIL
Ā 
Python programming language introduction unit
Python programming language introduction unitPython programming language introduction unit
Python programming language introduction unitmichaelaaron25322
Ā 
Python basics
Python basicsPython basics
Python basicsssuser4e32df
Ā 
Python programming
Python programmingPython programming
Python programmingsaroja20
Ā 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdfsamiwaris2
Ā 
Python indroduction
Python indroductionPython indroduction
Python indroductionFEG
Ā 
Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3Chariza Pladin
Ā 
Python Mastery: A Comprehensive Guide to Setting Up Your Development Environment
Python Mastery: A Comprehensive Guide to Setting Up Your Development EnvironmentPython Mastery: A Comprehensive Guide to Setting Up Your Development Environment
Python Mastery: A Comprehensive Guide to Setting Up Your Development EnvironmentPython Devloper
Ā 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on pythonShubham Yadav
Ā 

Similar to intro to python.pptx (20)

Introduction_to_Python.pptx
Introduction_to_Python.pptxIntroduction_to_Python.pptx
Introduction_to_Python.pptx
Ā 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Ā 
17575602.ppt
17575602.ppt17575602.ppt
17575602.ppt
Ā 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1
Ā 
Python for katana
Python for katanaPython for katana
Python for katana
Ā 
Class_X_PYTHON_J.pdf
Class_X_PYTHON_J.pdfClass_X_PYTHON_J.pdf
Class_X_PYTHON_J.pdf
Ā 
Python Programming.pptx
Python Programming.pptxPython Programming.pptx
Python Programming.pptx
Ā 
1. python programming
1. python programming1. python programming
1. python programming
Ā 
web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Maloth
Ā 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptx
Ā 
modul-python-part1.pptx
modul-python-part1.pptxmodul-python-part1.pptx
modul-python-part1.pptx
Ā 
Iot with raspberry pi insustrial training
Iot with raspberry pi insustrial trainingIot with raspberry pi insustrial training
Iot with raspberry pi insustrial training
Ā 
Python programming language introduction unit
Python programming language introduction unitPython programming language introduction unit
Python programming language introduction unit
Ā 
Python basics
Python basicsPython basics
Python basics
Ā 
Python programming
Python programmingPython programming
Python programming
Ā 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdf
Ā 
Python indroduction
Python indroductionPython indroduction
Python indroduction
Ā 
Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3Zero to Hero - Introduction to Python3
Zero to Hero - Introduction to Python3
Ā 
Python Mastery: A Comprehensive Guide to Setting Up Your Development Environment
Python Mastery: A Comprehensive Guide to Setting Up Your Development EnvironmentPython Mastery: A Comprehensive Guide to Setting Up Your Development Environment
Python Mastery: A Comprehensive Guide to Setting Up Your Development Environment
Ā 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
Ā 

Recently uploaded

Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
Ā 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
Ā 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
Ā 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
Ā 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
Ā 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
Ā 
Orlandoā€™s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlandoā€™s Arnold Palmer Hospital Layout Strategy-1.pptxOrlandoā€™s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlandoā€™s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
Ā 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
Ā 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxNadaHaitham1
Ā 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
Ā 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
Ā 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsArindam Chakraborty, Ph.D., P.E. (CA, TX)
Ā 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
Ā 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
Ā 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
Ā 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
Ā 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
Ā 

Recently uploaded (20)

Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Ā 
Call Girls in South Ex (delhi) call me [šŸ”9953056974šŸ”] escort service 24X7
Call Girls in South Ex (delhi) call me [šŸ”9953056974šŸ”] escort service 24X7Call Girls in South Ex (delhi) call me [šŸ”9953056974šŸ”] escort service 24X7
Call Girls in South Ex (delhi) call me [šŸ”9953056974šŸ”] escort service 24X7
Ā 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Ā 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
Ā 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Ā 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
Ā 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
Ā 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Ā 
Orlandoā€™s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlandoā€™s Arnold Palmer Hospital Layout Strategy-1.pptxOrlandoā€™s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlandoā€™s Arnold Palmer Hospital Layout Strategy-1.pptx
Ā 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
Ā 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
Ā 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
Ā 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
Ā 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
Ā 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
Ā 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Ā 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
Ā 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
Ā 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
Ā 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
Ā 

intro to python.pptx

  • 1. Python ā€¢ Python is a popular programming language. It was created by Guido van Rossum, and released in 1991. ā€¢ It is used for: ā€¢ web development (server-side), ā€¢ software development, ā€¢ mathematics, ā€¢ system scripting. What can Python do? ā€¢ Python can be used on a server to create web applications. ā€¢ Python can be used alongside software to create workflows. ā€¢ Python can connect to database systems. It can also read and modify files. ā€¢ Python can be used to handle big data and perform complex mathematics.
  • 2. Why Python? ā€¢ Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc). ā€¢ Python has a simple syntax similar to the English language. ā€¢ Python has syntax that allows developers to write programs with fewer lines than some other programming languages. ā€¢ Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick. ā€¢ Python can be treated in a procedural way, an object-oriented way or a functional way.
  • 3. Getting Python ā€¢ The most up-to-date and current source code, binaries, documentation, news, etc., is available on the official website of Python https://www.python.org/
  • 4. Python IDLE ā€¢ Every Python installation comes with an Integrated Development and Learning Environment. Helps you write code more efficiently
  • 5. Applications of Python ā€¢ Python is known for its general-purpose nature that makes it applicable in almost every domain of software development. Python makes its presence in every emerging field. It is the fastest-growing programming language and can develop any application.
  • 6.
  • 7. 1) Web Applications ā€¢ Python to develop web applications. It provides libraries to handle internet protocols such as HTML and XML, JSON, Email processing, request, beautifulSoup, Feedparser, etc. One of Python web-framework named Django is used on Instagram. 2) Desktop GUI Applications The GUI stands for the Graphical User Interface, which provides a smooth interaction to any application. Python provides a Tk GUI library to develop a user interface. Some popular GUI libraries are given below. ā€¢ Tkinter or Tk ā€¢ wxWidgetM ā€¢ Pyside
  • 8. ā€¢ Software Development Python is useful for the software development process. It works as a support language and can be used to build control and management, testing, etc. ā€¢ Scientific and Numeric Python language is the most suitable language for Artificial intelligence or machine learning. It consists of many scientific and mathematical libraries, which makes easy to solve complex calculations. Implementing machine learning algorithms require complex mathematical calculation. Python has many libraries for scientific and numeric such as Numpy, Pandas, Scipy, Scikit-learn, etc. ā€¢ Business Applications Business Applications differ from standard applications. E-commerce and ERP are an example of a business application. This kind of application requires extensively, scalability and readability, and Python provides all these features.
  • 9. ā€¢ Audio or Video-based Applications Python is flexible to perform multiple tasks and can be used to create multimedia applications. Some multimedia applications which are made by using Python are TimPlayer, cplay, etc. The few multimedia libraries are given below. ā€¢ Gstreamer ā€¢ Pyglet ā€¢ QT Phonon ā€¢ Image Processing Application Python contains many libraries that are used to work with the image. The image can be manipulated according to our requirements. Some libraries of image processing are given below. ā€¢ OpenCV ā€¢ Pillow ā€¢ SimpleITK
  • 10. Python Operators(W3schools) Operators are used to perform operations on variables and values. ā€¢ Python divides the operators in the following groups ā€¢ Arithmetic operators ā€¢ Assignment Operators ā€¢ Comparison Operators ā€¢ Logical Operators ā€¢ Identity Operators ā€¢ Membership Operators ā€¢ Bitwise Operators
  • 11. Python Data Types (Geeksforgeeks) ā€¢ Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data.
  • 12. Numeric In Python, numeric data type represent the data which has numeric value. Numeric value can be integer, floating number or even complex numbers. These values are defined as int, float and complex class in Python. ā€¢ Integers ā€“ This value is represented by int class. It contains positive or negative whole numbers (without fraction or decimal). In Python there is no limit to how long an integer value can be. ā€¢ Float ā€“ This value is represented by float class. It is a real number with floating point representation. It is specified by a decimal point. Optionally, the character e or E followed by a positive or negative integer may be appended to specify scientific notation. ā€¢ Complex Numbers ā€“ Complex number is represented by complex class. It is specified as (real part) + (imaginary part)j. For example ā€“ 2+3j
  • 13. Sequence Type ā€¢ Sequence is the ordered collection of similar or different data types. Sequences allows to store multiple values in an organized and efficient fashion. There are several sequence types in Python ā€“ ā€¢ String ā€¢ List ā€¢ Tuple ā€¢ 1) String ā€¢ String is the collection of one or more characters put in a single quote, double quote or triple quote. It is represented by str class. ā€¢ Creating String ā€¢ Strings in Python can be created using single quotes or double quotes or even triple quotes.
  • 14. ā€¢ Accessing elements of String ā€¢ Individual characters of a String can be accessed by using the method of Indexing. Indexing allows negative address references to access characters from the back of the String, e.g. -1 refers to the last character, -2 refers to the second last character and so on.
  • 15. 2) List ā€¢ Lists are just like the arrays, declared in other languages which is a ordered collection of data. It is very flexible as the items in a list do not need to be of the same type. ā€¢ Creating List ā€¢ Lists in python can be created by just placing the sequence inside the square bracket []. List = [] print("Initial blank List: ") print(List) List with multiple values List = ["Geeks", "For", "Geeks"] print("nList containing multiple values: ") print(List[0]) print(List[2]) To calculate the length of the list Print(len(List))
  • 16. Accessing elements of List Accessing a element using negative indexing print("Accessing element using negative indexing") print the last element of list print(List[-1]) print the third last element of list print(List[-3])
  • 17. 3) Tuple ā€¢ Tuple is also an ordered collection of Python objects. The only difference between tuple and list is that tuples are immutable i.e. tuples cannot be modified after it is created. It is represented by tuple class. ā€¢ Creating Tuple ā€¢ Tuples are created by placing a sequence of values separated by ā€˜commaā€™ with or without the use of parentheses for grouping of the data sequence