Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def print_dev_category():
categories = [{"categoryId":"0", "dev_type":"router"},
{"categoryId":"1", "dev_type":"switch"},
{"categoryId":"2", "dev_type":"server"},
{"categoryId":"3", "dev_type":"security"},
{"categoryId":"4", "dev_type":'storage' },
{"categoryId":"5", "dev_type":"wireless"},
{"categoryId":"6", "dev_type": "voice"},
{"categoryId":"7", "dev_type":'printer'},
{"categoryId":"8", "dev_type":'ups'},
{"categoryId":"9", "dev_type":"desktop"},
{"categoryId":"10", "dev_type":"other"},
{"categoryId":"11", "dev_type":"surveillance"},
{"categoryId":"12", "dev_type":"video"},
{"categoryId":"13", "dev_type":"module"},
{"categoryId":"14", "dev_type":"virtualdev"},
{"categoryId":"15", "dev_type":"Load Balancer"},
{"categoryId":"16", "dev_type":"sdn_ctrl"}
]
for i in categories:
print ("For "+i["dev_type"]+", Please press: "+i["categoryId"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.