Get practical, hands-on examples of Python theories and concepts, such as objects, functions, classes, and many more.
Overview
Syllabus
Introduction
- Python theory for network engineers
- History and use cases
- Python installation and script execution
- Network lab CML 2.1
- Zen of Python
- Python data types
- Strings and string methods
- Python numbers and math
- Python collections: Tuples, lists, and dictionaries
- Python superpower: Imports
- Challenge: Getting information from network gears
- Solution: Getting Information from network gears
- Conditional logic: If/then and compare values
- Lab: Demonstrating if/then and value comparison
- Conditional logic: For and while loops
- Lab: Demonstrate for and while loops
- Challenge: Making your script do repeatable tasks
- Solution: Making your script do repeatable tasks
- File inputs and outputs
- Lab: Working with files, file paths, and file operations
- Python functions
- Lab: Writing Python functions
- Challenge: Functionalize network tasks
- Solution: Functionalize network tasks
- Python classes
- Lab: Python classes for network device
- Python modules
- Lab: Python modules for grouping
- Python packages
- Lab: Python packages
- Data center as code
- Next steps in your Python journey
Taught by
David Bombal