SlideShare a Scribd company logo
1 of 7
BVRIT HYDERABAD College of Engineering for Women
Python Programming
By
M Dyva Sugnana Rao
Asst. Professor
Department of Computer Science and Engineering
BVRIT HYDERABAD College of Engineering for Women
Name of the Course Python Programming
Course Code CS601PC
Year & Semester B.Tech VI Year I Sem
Section CSE - A
Name of the Faculty M Dyva Sugnana Rao
Lecture Hour | Date 02 | 14 December 2020
Name of the Topic Exception Handling
Course Outcome(s) How to handle exceptions
Exception Handling
Syntax Error:
As the name suggest this error is caused by wrong
syntax in the code.
Exceptions:
An exception is an event, which occurs during the
execution of a program that disrupts the normal flow of
the program's instructions.
Exceptions in Python
• Python has many built-in exceptions that are raised when your
program encounters an error .
• Exception is the base class for all the exceptions in Python
Catching Exceptions in Python
• Exceptions can be handled using a try .
• Code that handles the exceptions is written in the except clause.
• try:
print(x)
except:
print("An exception occurred")
BVRIT HYDERABAD College of Engineering for Women
Thankyou

More Related Content

What's hot

Sandeepkcn UC3M Introduction to Programming with JAVA part 1
Sandeepkcn UC3M Introduction to Programming with JAVA part 1Sandeepkcn UC3M Introduction to Programming with JAVA part 1
Sandeepkcn UC3M Introduction to Programming with JAVA part 1Sandeep Dwivedi
 
Firoz's Resume.pdf
Firoz's Resume.pdfFiroz's Resume.pdf
Firoz's Resume.pdfFirozkumar2
 
Battlecode Programming Certifiate - Edukite
Battlecode Programming Certifiate - EdukiteBattlecode Programming Certifiate - Edukite
Battlecode Programming Certifiate - EdukiteEduKite
 
How to use sololearn .com for efe on line learning
How to use sololearn .com for efe   on line learningHow to use sololearn .com for efe   on line learning
How to use sololearn .com for efe on line learningOsama Ghandour Geris
 
(D 15 180770107240)
(D 15 180770107240)(D 15 180770107240)
(D 15 180770107240)RaviModi37
 
Artesanato de Software
Artesanato de SoftwareArtesanato de Software
Artesanato de SoftwareFelipe Lima
 
Resume Amine-Amari
Resume Amine-AmariResume Amine-Amari
Resume Amine-AmariAmine Amari
 
Summer training in Noida | APTRON Solutions
Summer training in Noida | APTRON SolutionsSummer training in Noida | APTRON Solutions
Summer training in Noida | APTRON SolutionsHarshita Gupta
 
Python certification courses
Python certification coursesPython certification courses
Python certification coursesabilashiniN
 

What's hot (18)

Lab13
Lab13Lab13
Lab13
 
SaoirseStewart_GMIT_CV
SaoirseStewart_GMIT_CVSaoirseStewart_GMIT_CV
SaoirseStewart_GMIT_CV
 
Sandeepkcn UC3M Introduction to Programming with JAVA part 1
Sandeepkcn UC3M Introduction to Programming with JAVA part 1Sandeepkcn UC3M Introduction to Programming with JAVA part 1
Sandeepkcn UC3M Introduction to Programming with JAVA part 1
 
Firoz's Resume.pdf
Firoz's Resume.pdfFiroz's Resume.pdf
Firoz's Resume.pdf
 
Battlecode Programming Certifiate - Edukite
Battlecode Programming Certifiate - EdukiteBattlecode Programming Certifiate - Edukite
Battlecode Programming Certifiate - Edukite
 
How to use sololearn .com for efe on line learning
How to use sololearn .com for efe   on line learningHow to use sololearn .com for efe   on line learning
How to use sololearn .com for efe on line learning
 
(D 15 180770107240)
(D 15 180770107240)(D 15 180770107240)
(D 15 180770107240)
 
Shubham_CV
Shubham_CVShubham_CV
Shubham_CV
 
Artesanato de Software
Artesanato de SoftwareArtesanato de Software
Artesanato de Software
 
Ultimate android app development course
Ultimate android app development course Ultimate android app development course
Ultimate android app development course
 
Chapter 1 - Overview of C
Chapter 1 - Overview of CChapter 1 - Overview of C
Chapter 1 - Overview of C
 
Resume Amine-Amari
Resume Amine-AmariResume Amine-Amari
Resume Amine-Amari
 
Summer training in Noida | APTRON Solutions
Summer training in Noida | APTRON SolutionsSummer training in Noida | APTRON Solutions
Summer training in Noida | APTRON Solutions
 
Soc engineer
Soc engineerSoc engineer
Soc engineer
 
Jalaparti-VirinchiKrishna
Jalaparti-VirinchiKrishnaJalaparti-VirinchiKrishna
Jalaparti-VirinchiKrishna
 
Python certification courses
Python certification coursesPython certification courses
Python certification courses
 
Guilherme-Rodrigues-CV
Guilherme-Rodrigues-CVGuilherme-Rodrigues-CV
Guilherme-Rodrigues-CV
 
Wiki2
Wiki2Wiki2
Wiki2
 

Similar to Exceptions 14 12_2020

Софтуерна академия на Телерик - информационен ден (август 2012)
Софтуерна академия на Телерик - информационен ден (август 2012)Софтуерна академия на Телерик - информационен ден (август 2012)
Софтуерна академия на Телерик - информационен ден (август 2012)Svetlin Nakov
 
Telerik Software Academy - Info Day - August 2012
Telerik Software Academy - Info Day - August 2012Telerik Software Academy - Info Day - August 2012
Telerik Software Academy - Info Day - August 2012Svetlin Nakov
 
Introduction of exception in vb.net
Introduction of exception in vb.netIntroduction of exception in vb.net
Introduction of exception in vb.netsuraj pandey
 
Study ON Ease (St-On-E) (1).pdf
Study ON Ease (St-On-E) (1).pdfStudy ON Ease (St-On-E) (1).pdf
Study ON Ease (St-On-E) (1).pdfNSSGECPalakkad
 
Java - Exception Handling Concepts
Java - Exception Handling ConceptsJava - Exception Handling Concepts
Java - Exception Handling ConceptsVicter Paul
 
CPCS202_01_Introduction.pptx
CPCS202_01_Introduction.pptxCPCS202_01_Introduction.pptx
CPCS202_01_Introduction.pptxbatol1998g
 
AP Computer Science Test Prep Part 1 - Introduction to java Programming
AP Computer Science Test Prep Part 1 - Introduction to java ProgrammingAP Computer Science Test Prep Part 1 - Introduction to java Programming
AP Computer Science Test Prep Part 1 - Introduction to java ProgrammingNR Computer Learning Center
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chaptersIbrahim Elewah
 
Towards Developing a Repository of Logical Errors Observed in Parallel Code t...
Towards Developing a Repository of Logical Errors Observed in Parallel Code t...Towards Developing a Repository of Logical Errors Observed in Parallel Code t...
Towards Developing a Repository of Logical Errors Observed in Parallel Code t...Ritu Arora
 
Problem solving process
Problem solving processProblem solving process
Problem solving processSatveer Mann
 
asp.net mvc-course-introduction
 asp.net mvc-course-introduction asp.net mvc-course-introduction
asp.net mvc-course-introductionAyaz Meher
 
Programming Theory
Programming TheoryProgramming Theory
Programming Theoryiarthur
 
00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introductionmaznabili
 
IRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET Journal
 
12slide.ppt
12slide.ppt12slide.ppt
12slide.pptmohaz5
 
Report summer training core java
Report summer training core javaReport summer training core java
Report summer training core javaSudhanshuVijay3
 
Complete Roadmap For First Year Students
Complete Roadmap For First Year Students Complete Roadmap For First Year Students
Complete Roadmap For First Year Students Simplilearn
 

Similar to Exceptions 14 12_2020 (20)

Софтуерна академия на Телерик - информационен ден (август 2012)
Софтуерна академия на Телерик - информационен ден (август 2012)Софтуерна академия на Телерик - информационен ден (август 2012)
Софтуерна академия на Телерик - информационен ден (август 2012)
 
Telerik Software Academy - Info Day - August 2012
Telerik Software Academy - Info Day - August 2012Telerik Software Academy - Info Day - August 2012
Telerik Software Academy - Info Day - August 2012
 
Introduction of exception in vb.net
Introduction of exception in vb.netIntroduction of exception in vb.net
Introduction of exception in vb.net
 
Study ON Ease (St-On-E) (1).pdf
Study ON Ease (St-On-E) (1).pdfStudy ON Ease (St-On-E) (1).pdf
Study ON Ease (St-On-E) (1).pdf
 
Java - Exception Handling Concepts
Java - Exception Handling ConceptsJava - Exception Handling Concepts
Java - Exception Handling Concepts
 
CPCS202_01_Introduction.pptx
CPCS202_01_Introduction.pptxCPCS202_01_Introduction.pptx
CPCS202_01_Introduction.pptx
 
AP Computer Science Test Prep Part 1 - Introduction to java Programming
AP Computer Science Test Prep Part 1 - Introduction to java ProgrammingAP Computer Science Test Prep Part 1 - Introduction to java Programming
AP Computer Science Test Prep Part 1 - Introduction to java Programming
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chapters
 
Towards Developing a Repository of Logical Errors Observed in Parallel Code t...
Towards Developing a Repository of Logical Errors Observed in Parallel Code t...Towards Developing a Repository of Logical Errors Observed in Parallel Code t...
Towards Developing a Repository of Logical Errors Observed in Parallel Code t...
 
Problem solving process
Problem solving processProblem solving process
Problem solving process
 
asp.net mvc-course-introduction
 asp.net mvc-course-introduction asp.net mvc-course-introduction
asp.net mvc-course-introduction
 
Programming Theory
Programming TheoryProgramming Theory
Programming Theory
 
00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction
 
IRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education System
 
12slide.ppt
12slide.ppt12slide.ppt
12slide.ppt
 
Report summer training core java
Report summer training core javaReport summer training core java
Report summer training core java
 
Python brochure (2)
Python brochure (2)Python brochure (2)
Python brochure (2)
 
Intro To AOP
Intro To AOPIntro To AOP
Intro To AOP
 
Exception handling
Exception handling Exception handling
Exception handling
 
Complete Roadmap For First Year Students
Complete Roadmap For First Year Students Complete Roadmap For First Year Students
Complete Roadmap For First Year Students
 

More from Sugnan M

Python list 28_10_2020
Python list 28_10_2020Python list 28_10_2020
Python list 28_10_2020Sugnan M
 
Python files 11_12_2020
Python files 11_12_2020Python files 11_12_2020
Python files 11_12_2020Sugnan M
 
Python dictionary 02_11_2020
Python dictionary 02_11_2020Python dictionary 02_11_2020
Python dictionary 02_11_2020Sugnan M
 
Python command line_14_12_2020
Python command line_14_12_2020Python command line_14_12_2020
Python command line_14_12_2020Sugnan M
 
Modules 17 12_2020
Modules 17 12_2020Modules 17 12_2020
Modules 17 12_2020Sugnan M
 
Structures unions
Structures  unionsStructures  unions
Structures unionsSugnan M
 

More from Sugnan M (6)

Python list 28_10_2020
Python list 28_10_2020Python list 28_10_2020
Python list 28_10_2020
 
Python files 11_12_2020
Python files 11_12_2020Python files 11_12_2020
Python files 11_12_2020
 
Python dictionary 02_11_2020
Python dictionary 02_11_2020Python dictionary 02_11_2020
Python dictionary 02_11_2020
 
Python command line_14_12_2020
Python command line_14_12_2020Python command line_14_12_2020
Python command line_14_12_2020
 
Modules 17 12_2020
Modules 17 12_2020Modules 17 12_2020
Modules 17 12_2020
 
Structures unions
Structures  unionsStructures  unions
Structures unions
 

Recently uploaded

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 

Recently uploaded (20)

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 

Exceptions 14 12_2020

  • 1. BVRIT HYDERABAD College of Engineering for Women Python Programming By M Dyva Sugnana Rao Asst. Professor Department of Computer Science and Engineering
  • 2. BVRIT HYDERABAD College of Engineering for Women Name of the Course Python Programming Course Code CS601PC Year & Semester B.Tech VI Year I Sem Section CSE - A Name of the Faculty M Dyva Sugnana Rao Lecture Hour | Date 02 | 14 December 2020 Name of the Topic Exception Handling Course Outcome(s) How to handle exceptions
  • 3. Exception Handling Syntax Error: As the name suggest this error is caused by wrong syntax in the code. Exceptions: An exception is an event, which occurs during the execution of a program that disrupts the normal flow of the program's instructions.
  • 4. Exceptions in Python • Python has many built-in exceptions that are raised when your program encounters an error . • Exception is the base class for all the exceptions in Python
  • 5. Catching Exceptions in Python • Exceptions can be handled using a try . • Code that handles the exceptions is written in the except clause. • try: print(x) except: print("An exception occurred")
  • 6.
  • 7. BVRIT HYDERABAD College of Engineering for Women Thankyou