Oct-06-2023, 12:09 PM
working_config = [(idx, item) for idx, item in config if "GigabitEthernet" in item]That is if you really do need to keep the row index.
Why do you need them? I would remove the
enumerate()
if you don't need the indexyeah, that was whay I mean, if you don't need the index
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs