SlideShare a Scribd company logo
An
Industrial Training Presentation
on
PYTHON PROGRAMMING
At
………………
Submitted in partial fulfillment of the requirements for the award of the degree of
…………………………
in
……………………………
(Session 2021-2022)
Submitted to - Submitted by-
MR. XYZ BBBBBBBB
Assistant Professor, Roll No. : OOOOOOOO
(Department Of XXX) Batch : XXX
DEPARTMENT ……………………………………
………………………..CLZ NAME…………………….
UNI NAME………………………………….
SEPTEMBER, 2022
Content
 Training Introduction
 What is Python
 Why we use Python
 Data Types
 Conclusion
 References
What is Python
 Python is an interpreted, object-oriented, high-level
programming language with dynamic semantics.
 Python's simple, easy to learn syntax emphasizes readability
and therefore reduces the cost of program maintenance.
 Python supports modules and packages, which encourages
program modularity and code reuse.
Why We Use Python
 Large Standard Library
 Embedded
 Open source
 Object Oriented Language
 Interpreted Language
 Speed
 Easy Programming Language
 GUI Programming Support
Data Types
 Number
 String
 List
 Dictionary
 Touple
 Sets
Data Types
NUMBERS –
1. Integer Number Data Type
2. Floating Number Data Type
3. Complex Number Data Type
DICTIONARY -
A dictionary is a collection which is ordered, changeable and does
not allow duplicates.
Dictionary are used to store data value in key:value pairs.
Ex. dict = {1: “a”,2:“b”}.
Data Types
LIST –
List is a collection of different values of different types of items.
The item in the list are separated with the comma(,) and enclosed
with the square brackets[].
a=[1,2,"sham","ram",21.5]
STRING –
Sequence of letters enclosed in quotes is called string or string
literal or constant.
Python supports both form of quotes i.e.
‘Hello’ , “Hello”
Data Types
SETS -
A type of array, which is unordered as well as unindexed. It
doesn’t allow Duplicate members.
Ex. Set1 = {“ram”, “shyam”}
TUPLES –
“t = (1,2,3,one)”.
A simple immutable ordered sequence of items
Items can be of mixed types, including collection types.
Python Loops
Python has two primitive loop commands:
 While loops
 For loops
 While loop - The while loop we can execute a set of statements as
long as a condition is true.
 For loop - A for loop is used for iterating over a sequence (that is
either a list, a tuple, a dictionary, a set, or a string).
 This is less like the for keyword in other programming languages,
and works more like an iterator method as found in other object-
orientated programming languages.
 With the for loop we can execute a set of statements, once for each
item in a list, tuple, set etc.
Python Function
 A function is a block of code which only runs when it is called.
 You can pass data, known as parameters, into a function.
 A function can return data as a result.
 Python a function is defined using the def keyword
 Example :
 Def statements - def name_of_function(arg1,arg2):
call ‘ name_of_function()’.
Conditional Statements
‘If -elif –else’
statements -
If test
expression:
Body of
if
elif
test expression:
Body of elif
else:
Body of else
‘If – else’
statements -
if test
expression:
Body of if
else:
Body of else
-
‘If’ statements -
num = -1
if
num > 0:
print(num, "is
a positive
number.")
print("This is also
always printed.")
Python Operators
 Operators are special symbols in Python that carry out arithmetic
or logical computation. The value that the operator operates on is
called the operand.
Example : >>>>2+3
5
Operators that Python Language supports are:
 Arithmetic Operators
 Assignment Operators
 Comparison Operators
 Logical Operators
 Identity Operators
 Membership Operators
 Bitwise Operators.
Errors and Exception Handling
 Errors :Errors are the problems in a program due to which the
program will stop the execution. On the other hand, exceptions
are raised when some internal events occur which changes the
normal flow of the program.
Two types of Error occurs in python.
 Syntax errors
 Logical errors (Exceptions)
 Exception handling : Python has many built-in exceptions
that are raised when your program encounters an error
(something in the program goes wrong). When these
exceptions occur, the Python interpreter stops the current
process and passes it to the calling process until it is handled. If
not handled, the program will crash.
Database Handling
 . The DBMS is a software system that enables you to create,
store, modify, retrieve, and otherwise handle data from a
database. Such systems also vary in size, ranging from small
systems that simply run on your personal computer to larger ones
running on mainframes.
 Establish a connection to your database of choice.
 Create a cursor to communicate with the data.
 Manipulate the data using SQL (interact).
 Tell the connection to either apply the SQL manipulations to the
data and make them permanent (commit), or tell it to abort those
manipulations (rollback), thus returning the data to the state before
the interactions occurred.
 Close the connection to the database.
File Handling
 File handling is an important part of any web application.
Python has several functions for creating, reading, updating,
and deleting files.
 The key function for working with files in Python is
the open() function.
 The open() function takes two parameters; filename, and mode.
 There are three different methods (modes) for opening a file:
 "r" - Read - Default value. Opens a file for reading, error if the
file does not exist
 "a" - Append - Opens a file for appending, creates the file if it
does not exist
 "w" - Write - Opens a file for writing, creates the file if it does
not exist
Object Oriented Programming
(OOP)
OOP is basically very useful in future work. Basically, this is
defined in to two categories Class and Object.
 Class: Class is a type of category of overall type. They can be
a person, animal in other words it’s a broad.
 Object: From Class we get Object. These are instance of a
class.
 Inheritance: In this concept, we have two types of class
‘Child Class’ and ‘Parent Class’. As we know in
human the meaning of inheritance is obtaining the qualities,
some effects or any other things
child gain from their parents and from grandparents. Same in
Python the Child Class
inheritance the properties of Parent Class or functions of
Parent Class. This is the very basic concept of Inheritance.
Conclusion
 Python supports both function-oriented and structure-oriented
programming. It has features of dynamic memory management
which can make use of computational resources efficiently. It is
also compatible with all popular operating systems and
platforms. Hence this language can be universally accepted by
all programmers.
 • Implementation to develop Python based GUI Application
 • Directly interacted with OS using Python Programming.
Reference
 https://www.jpsoft.in/
 https://realpython.com/python-gui-tkinter/
 https://stackoverflow.com/
 https://www.python.org/
 https://www.geeksforgeeks.org/
 https://docs.python.org/3/library/tkinter.html
 https://pypi.org/project/SpeechRecognition/
 https://towardsdatascience.com/speech-recognition-in-python-
the-complete-beginners-guide-de1dd7f00726
 https://www.youtube.com/
 https://www.google.com/
PYTHON PPT.pptx
PYTHON PPT.pptx

More Related Content

What's hot

Python
PythonPython
Python
Aashish Jain
 
Python Modules
Python ModulesPython Modules
Python Modules
Nitin Reddy Katkam
 
Looping Statements and Control Statements in Python
Looping Statements and Control Statements in PythonLooping Statements and Control Statements in Python
Looping Statements and Control Statements in Python
PriyankaC44
 
Variables in python
Variables in pythonVariables in python
Variables in python
Jaya Kumari
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Ayshwarya Baburam
 
Python ppt
Python pptPython ppt
Python ppt
Mohita Pandey
 
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | EdurekaPython Course | Python Programming | Python Tutorial | Python Training | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Edureka!
 
Python by Rj
Python by RjPython by Rj
Java Streams
Java StreamsJava Streams
Java Streams
M Vishnuvardhan Reddy
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
AnirudhaGaikwad4
 
Class, object and inheritance in python
Class, object and inheritance in pythonClass, object and inheritance in python
Class, object and inheritance in python
Santosh Verma
 
Python
PythonPython
Python
Shivam Gupta
 
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Edureka!
 
Introduction to Basics of Python
Introduction to Basics of PythonIntroduction to Basics of Python
Introduction to Basics of Python
Elewayte
 
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
What is Multithreading In Python | Python Multithreading Tutorial | EdurekaWhat is Multithreading In Python | Python Multithreading Tutorial | Edureka
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
Edureka!
 
Python basic
Python basicPython basic
Python basic
Saifuddin Kaijar
 
Python Functions
Python   FunctionsPython   Functions
Python Functions
Mohammed Sikander
 
Object oriented programming in python
Object oriented programming in pythonObject oriented programming in python
Object oriented programming in python
baabtra.com - No. 1 supplier of quality freshers
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
amiable_indian
 
Python basics
Python basicsPython basics
Python basics
RANAALIMAJEEDRAJPUT
 

What's hot (20)

Python
PythonPython
Python
 
Python Modules
Python ModulesPython Modules
Python Modules
 
Looping Statements and Control Statements in Python
Looping Statements and Control Statements in PythonLooping Statements and Control Statements in Python
Looping Statements and Control Statements in Python
 
Variables in python
Variables in pythonVariables in python
Variables in python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python ppt
Python pptPython ppt
Python ppt
 
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | EdurekaPython Course | Python Programming | Python Tutorial | Python Training | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
 
Python by Rj
Python by RjPython by Rj
Python by Rj
 
Java Streams
Java StreamsJava Streams
Java Streams
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Class, object and inheritance in python
Class, object and inheritance in pythonClass, object and inheritance in python
Class, object and inheritance in python
 
Python
PythonPython
Python
 
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
 
Introduction to Basics of Python
Introduction to Basics of PythonIntroduction to Basics of Python
Introduction to Basics of Python
 
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
What is Multithreading In Python | Python Multithreading Tutorial | EdurekaWhat is Multithreading In Python | Python Multithreading Tutorial | Edureka
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
 
Python basic
Python basicPython basic
Python basic
 
Python Functions
Python   FunctionsPython   Functions
Python Functions
 
Object oriented programming in python
Object oriented programming in pythonObject oriented programming in python
Object oriented programming in python
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
Python basics
Python basicsPython basics
Python basics
 

Similar to PYTHON PPT.pptx

Python Course In Chandigarh
Python Course In ChandigarhPython Course In Chandigarh
Python Course In Chandigarh
Excellence Academy
 
First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python Programming
Dozie Agbo
 
Python-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptxPython-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptx
dmdHaneef
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
zynofustechnology
 
Python Programming
Python ProgrammingPython Programming
Python Programming
SheikAllavudeenN
 
Government Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptxGovernment Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptx
ShivamDenge
 
Shivam PPT.pptx
Shivam PPT.pptxShivam PPT.pptx
Shivam PPT.pptx
ShivamDenge
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptx
RohitKumar639388
 
introduction of python in data science
introduction of python in data scienceintroduction of python in data science
introduction of python in data science
bhavesh lande
 
Python programming
Python programmingPython programming
Python programming
Prof. Dr. K. Adisesha
 
Python training
Python trainingPython training
Python training
Kunalchauhan76
 
Python Course.docx
Python Course.docxPython Course.docx
Python Course.docx
AdnanAhmad57885
 
POP vs OOP Introduction
POP vs OOP IntroductionPOP vs OOP Introduction
POP vs OOP Introduction
Hashni T
 
Intro to python
Intro to pythonIntro to python
Intro to python
Mohamed Essam
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageLaxman Puri
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
KPDDRAVIDIAN
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
RojaPriya
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
Shubham Yadav
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
kavinilavuG
 

Similar to PYTHON PPT.pptx (20)

Python Course In Chandigarh
Python Course In ChandigarhPython Course In Chandigarh
Python Course In Chandigarh
 
First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python Programming
 
Python-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptxPython-Mastering-the-Language-of-Data-Science.pptx
Python-Mastering-the-Language-of-Data-Science.pptx
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Government Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptxGovernment Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptx
 
Shivam PPT.pptx
Shivam PPT.pptxShivam PPT.pptx
Shivam PPT.pptx
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptx
 
introduction of python in data science
introduction of python in data scienceintroduction of python in data science
introduction of python in data science
 
Python programming
Python programmingPython programming
Python programming
 
Python training
Python trainingPython training
Python training
 
Python Course.docx
Python Course.docxPython Course.docx
Python Course.docx
 
INTERNSHIP REPORT.docx
 INTERNSHIP REPORT.docx INTERNSHIP REPORT.docx
INTERNSHIP REPORT.docx
 
POP vs OOP Introduction
POP vs OOP IntroductionPOP vs OOP Introduction
POP vs OOP Introduction
 
Intro to python
Intro to pythonIntro to python
Intro to python
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
 

Recently uploaded

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 

PYTHON PPT.pptx

  • 1. An Industrial Training Presentation on PYTHON PROGRAMMING At ……………… Submitted in partial fulfillment of the requirements for the award of the degree of ………………………… in …………………………… (Session 2021-2022) Submitted to - Submitted by- MR. XYZ BBBBBBBB Assistant Professor, Roll No. : OOOOOOOO (Department Of XXX) Batch : XXX DEPARTMENT …………………………………… ………………………..CLZ NAME……………………. UNI NAME…………………………………. SEPTEMBER, 2022
  • 2. Content  Training Introduction  What is Python  Why we use Python  Data Types  Conclusion  References
  • 3. What is Python  Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.  Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance.  Python supports modules and packages, which encourages program modularity and code reuse.
  • 4. Why We Use Python  Large Standard Library  Embedded  Open source  Object Oriented Language  Interpreted Language  Speed  Easy Programming Language  GUI Programming Support
  • 5. Data Types  Number  String  List  Dictionary  Touple  Sets
  • 6. Data Types NUMBERS – 1. Integer Number Data Type 2. Floating Number Data Type 3. Complex Number Data Type DICTIONARY - A dictionary is a collection which is ordered, changeable and does not allow duplicates. Dictionary are used to store data value in key:value pairs. Ex. dict = {1: “a”,2:“b”}.
  • 7. Data Types LIST – List is a collection of different values of different types of items. The item in the list are separated with the comma(,) and enclosed with the square brackets[]. a=[1,2,"sham","ram",21.5] STRING – Sequence of letters enclosed in quotes is called string or string literal or constant. Python supports both form of quotes i.e. ‘Hello’ , “Hello”
  • 8. Data Types SETS - A type of array, which is unordered as well as unindexed. It doesn’t allow Duplicate members. Ex. Set1 = {“ram”, “shyam”} TUPLES – “t = (1,2,3,one)”. A simple immutable ordered sequence of items Items can be of mixed types, including collection types.
  • 9. Python Loops Python has two primitive loop commands:  While loops  For loops  While loop - The while loop we can execute a set of statements as long as a condition is true.  For loop - A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).  This is less like the for keyword in other programming languages, and works more like an iterator method as found in other object- orientated programming languages.  With the for loop we can execute a set of statements, once for each item in a list, tuple, set etc.
  • 10. Python Function  A function is a block of code which only runs when it is called.  You can pass data, known as parameters, into a function.  A function can return data as a result.  Python a function is defined using the def keyword  Example :  Def statements - def name_of_function(arg1,arg2): call ‘ name_of_function()’.
  • 11. Conditional Statements ‘If -elif –else’ statements - If test expression: Body of if elif test expression: Body of elif else: Body of else ‘If – else’ statements - if test expression: Body of if else: Body of else - ‘If’ statements - num = -1 if num > 0: print(num, "is a positive number.") print("This is also always printed.")
  • 12. Python Operators  Operators are special symbols in Python that carry out arithmetic or logical computation. The value that the operator operates on is called the operand. Example : >>>>2+3 5 Operators that Python Language supports are:  Arithmetic Operators  Assignment Operators  Comparison Operators  Logical Operators  Identity Operators  Membership Operators  Bitwise Operators.
  • 13. Errors and Exception Handling  Errors :Errors are the problems in a program due to which the program will stop the execution. On the other hand, exceptions are raised when some internal events occur which changes the normal flow of the program. Two types of Error occurs in python.  Syntax errors  Logical errors (Exceptions)  Exception handling : Python has many built-in exceptions that are raised when your program encounters an error (something in the program goes wrong). When these exceptions occur, the Python interpreter stops the current process and passes it to the calling process until it is handled. If not handled, the program will crash.
  • 14. Database Handling  . The DBMS is a software system that enables you to create, store, modify, retrieve, and otherwise handle data from a database. Such systems also vary in size, ranging from small systems that simply run on your personal computer to larger ones running on mainframes.  Establish a connection to your database of choice.  Create a cursor to communicate with the data.  Manipulate the data using SQL (interact).  Tell the connection to either apply the SQL manipulations to the data and make them permanent (commit), or tell it to abort those manipulations (rollback), thus returning the data to the state before the interactions occurred.  Close the connection to the database.
  • 15. File Handling  File handling is an important part of any web application. Python has several functions for creating, reading, updating, and deleting files.  The key function for working with files in Python is the open() function.  The open() function takes two parameters; filename, and mode.  There are three different methods (modes) for opening a file:  "r" - Read - Default value. Opens a file for reading, error if the file does not exist  "a" - Append - Opens a file for appending, creates the file if it does not exist  "w" - Write - Opens a file for writing, creates the file if it does not exist
  • 16. Object Oriented Programming (OOP) OOP is basically very useful in future work. Basically, this is defined in to two categories Class and Object.  Class: Class is a type of category of overall type. They can be a person, animal in other words it’s a broad.  Object: From Class we get Object. These are instance of a class.  Inheritance: In this concept, we have two types of class ‘Child Class’ and ‘Parent Class’. As we know in human the meaning of inheritance is obtaining the qualities, some effects or any other things child gain from their parents and from grandparents. Same in Python the Child Class inheritance the properties of Parent Class or functions of Parent Class. This is the very basic concept of Inheritance.
  • 17. Conclusion  Python supports both function-oriented and structure-oriented programming. It has features of dynamic memory management which can make use of computational resources efficiently. It is also compatible with all popular operating systems and platforms. Hence this language can be universally accepted by all programmers.  • Implementation to develop Python based GUI Application  • Directly interacted with OS using Python Programming.
  • 18. Reference  https://www.jpsoft.in/  https://realpython.com/python-gui-tkinter/  https://stackoverflow.com/  https://www.python.org/  https://www.geeksforgeeks.org/  https://docs.python.org/3/library/tkinter.html  https://pypi.org/project/SpeechRecognition/  https://towardsdatascience.com/speech-recognition-in-python- the-complete-beginners-guide-de1dd7f00726  https://www.youtube.com/  https://www.google.com/