FULL LESSON · NOVEMBER 27, 2026
Python for network engineers.
Seven ideas you already know.
You already know Python. You just know it by other names.A variable is a labelled port, a list is your VLAN list, a dictionary is the ARP table, a loop is “do this on every switch”, a function is a saved config template, try / except is your failover path, and an API call is asking a device for its show output.It ends with one tiny script that pings a list of addresses and tells you which ones answer.
Pressing play loads the video from YouTube. Open it on YouTube instead →
ChaptersWhat is real, what is a drawingSourcesRelated lessons
CHAPTERS · 2:35
Jump to any part.
- 0:00You already know Python
- 0:141. Variable: a labelled port
- 0:332. List: your VLAN list
- 0:503. Dictionary: the ARP table
- 1:054. Loop: do this on every switch
- 1:215. Function: a saved config template
- 1:336. try / except: your failover path
- 1:477. API call: asking a device for its show output
- 2:01One tiny script: ping a list of addresses
- 2:18Your turn
Each time opens the video on YouTube at that moment.
HOW TO READ THIS LESSON
What is real, and what is a drawing.
REAL SCREENS AND RESULTS
- Every line of code on screen was run before it went into the video (Python 3.13 on Windows).
- The API example was run against a small stand-in device on the same PC.
TEACHING ILLUSTRATION
- The network pictures each Python idea is compared to (the port, the VLAN list, the ARP table and the switches).
The ping script uses Windows ping options (-n 1 -w 1000); on Linux or macOS use -c 1 -W 1. The drawings explain the idea. They are not screenshots.
SOURCES
Read the originals.
You already know it.
Now type it.
Take the ping script, change the address list to your own lab, and run it.
WATCH AND FOLLOW
The lessons are videos.
Every Monday, a new episode of Building EncorAI Corp on YouTube. On weekdays, Shorts: outages explained, AI and automation.
New episode every Monday.
