
How to Flatten Nested Python For Loops
Python Tip: Use product from itertools to flatten your nested for loops.
Here is an example π
devices = ["192.168.1.1", "192.168.1.2", "192.168.1.3"]
interfaces = ["Gi0/1", "Gi0/2", "Gi0/3"]
# -- Using