Home > Articles > Python Functions, Classes, and Modules

Python Functions, Classes, and Modules

Chapter Description

Building Python functions allows for the creation of reusable code and is the first step toward writing object-oriented code. In this sample chapter from Cisco Certified DevNet Associate DEVASC 200-901 Official Cert Guide, you will review working with and building Python functions. It also introduces how Python modules can extend the capabilities of Python and make your job of coding much easier.

Review All Key Topics

Review the most important topics in this chapter, noted with the Key Topic icon in the outer margin of the page. Table 4-2 lists these key topics and the page number on which each is found.

key_topic_icon.jpg
Table 4-2 Key Topics

Key Topic Element

Description

Page Number

Paragraph

Defining functions

88

Paragraph

The value of object-oriented programming

92

Paragraph

Defining classes

92

Paragraph

Inheritance

94

Paragraph

Python modules

96

Bulleted list

Common Python modules

101

Cisco Press Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Cisco Press and its family of brands. I can unsubscribe at any time.