View Single Post
  #5  
Old 05-06-2019, 02:38 PM
slouw slouw is offline
Registered User
 
Join Date: Nov 2005
Posts: 166
Working sample

And so it does thankyou.
Your help much appreciated...

This is a complete working code fragment
Code:
# $language = "python"
# $interface = "1.0"
#
Dict_Param = {}
KeyStr = ["<IP_ADDRESS>","<PREFIXLENGTH>","<HOSTNAME>"]
AssignStr = ["10.10.10.10","24","blahblah"]
print Dict_Param
for xxx in range(0, 3):
    Dict_Param[KeyStr[xxx]] = AssignStr[xxx]
print Dict_Param
Reply With Quote