Exceptions and Classes in Python

Invite Friends
Facebook Twitter Google+ LinkedIn Email
Description
Virtual Practice Lab
Practice Test
Resources
Exceptions and Classes in Python

Exceptions and Classes in Python

This lesson covers exceptions and classes in Python. An exception is what happens when your code causes an error at execution (i.e. if you attempt to access a file which doesn’t exist). To handle exceptions you can try some code to handle to error and keep coding. Participants also learn about classes, which are an essential part of Python’s Object Oriented nature. They allow the user to create objects which specific attributes and functions (called methods) quickly and easily. The following are parts of a class:

  • Attributes
  • Methods
  • Inheriting

Participants also learn step-by-step instructions in creating an exception and can follow along with the instructor as he programs on the screen. Finally, the lesson also covers the following more obscure functions:

  • Lambda
  • List comprehension
Coming Soon
Learn on the go.
The app designed for the modern cyber security professional.
Get it on Google PlayGet it on the App Store
Practice Labs and Exam Vouchers

Congratulations! You're taking the first step to getting certified. Get some hands on experience with available practice labs OR save some money, support Cybrary, and purchase discounted exam vouchers. Ready to earn your next industry certification? Join cyber security's largest community and start learning today.

JOIN CYBRARY

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Cybrary On The Go

Get the Cybrary app for Android for online and offline viewing of our lessons.

Get it on Google Play
 

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

Cybrary|0P3N

Free Solution For OST to PST
Views: 185 / June 22, 2017
Your Complete Guide to VMware
Views: 180 / June 22, 2017
Collecting Firewall and Router Logs
Views: 153 / June 22, 2017
Your Complete Guide to Wireshark
Views: 3496 / June 21, 2017
Skip to toolbar
Cybrary works best if you switch to our Android-friendly app
Continue

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel