SlideShare a Scribd company logo
1 of 20
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 (20)

Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Modules and packages in python
Modules and packages in pythonModules and packages in python
Modules and packages in python
 
Python Programming ppt
Python Programming pptPython Programming ppt
Python Programming ppt
 
Python-01| Fundamentals
Python-01| FundamentalsPython-01| Fundamentals
Python-01| Fundamentals
 
Python ppt
Python pptPython ppt
Python ppt
 
Python Modules
Python ModulesPython Modules
Python Modules
 
Python libraries
Python librariesPython libraries
Python libraries
 
Python programming
Python programmingPython programming
Python programming
 
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)
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Python Basics
Python BasicsPython Basics
Python Basics
 
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
 
Introduction to Python Basics Programming
Introduction to Python Basics ProgrammingIntroduction to Python Basics Programming
Introduction to Python Basics Programming
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python by Rj
Python by RjPython by Rj
Python by Rj
 
Python ppt
Python pptPython ppt
Python ppt
 
Chapter 03 python libraries
Chapter 03 python librariesChapter 03 python libraries
Chapter 03 python libraries
 
Programming with Python
Programming with PythonProgramming with Python
Programming with Python
 
Python dictionary
Python   dictionaryPython   dictionary
Python dictionary
 

Similar to PYTHON PPT.pptx

First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python ProgrammingDozie 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.pptxdmdHaneef
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experiencedzynofustechnology
 
Government Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptxGovernment Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptxShivamDenge
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxRohitKumar639388
 
introduction of python in data science
introduction of python in data scienceintroduction of python in data science
introduction of python in data sciencebhavesh lande
 
POP vs OOP Introduction
POP vs OOP IntroductionPOP vs OOP Introduction
POP vs OOP IntroductionHashni T
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageLaxman Puri
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answersRojaPriya
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on pythonShubham Yadav
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answerskavinilavuG
 
Python Foundation – A programmer's introduction to Python concepts & style
Python Foundation – A programmer's introduction to Python concepts & stylePython Foundation – A programmer's introduction to Python concepts & style
Python Foundation – A programmer's introduction to Python concepts & styleKevlin Henney
 

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 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
 
Python Foundation – A programmer's introduction to Python concepts & style
Python Foundation – A programmer's introduction to Python concepts & stylePython Foundation – A programmer's introduction to Python concepts & style
Python Foundation – A programmer's introduction to Python concepts & style
 

Recently uploaded

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 

Recently uploaded (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 

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/