Here's the revised version of your code with the proper for loop and import statement: import datetime
from netmiko import Netmiko
from dnac_resources import cisco_CSRV1, cisco_CSRV2
# Create the list of devices
devices = [cisco_CSRV1, cisco_CSRV2]
...
First of all, if you want to use any programming languages, my advice would be to use the Visual Studio Code. It is free and open-source plus it gives an autocompletion. It is the best code editor out there with lots of improvement for Python program...
Right now to all the people who want to use SOAP, please don't use SOAP. JSON is the best data type nowadays to work with. If you want to send an AJAX request then use the JSON Data to exchange the information. It is safe and all the programming lan...