Python is the standard language for network automation. Its simplicity, libraries, and community make it the obvious choice.
Readable syntax. Code looks like pseudocode. Network engineers learn it quickly.
Network libraries. Netmiko, NAPALM, Nornir provide device connectivity.
Example:
import requests
response = requests.get(
'https://switch.example.com/api/interfaces',
headers={'Authorization': 'Bearer token'}
)
for iface in response.json():
print(iface['name'], iface['status'])
Simple scripts solve real problems quickly.