Python - Parsing Cisco AireOS Configuration As I progress with my learning of Python and network engineering, I'm beginning to find its use cases. I'd like to share something simple I created for a task I was doing often.
Parsing XML with Python Minidom A core skill for a DevNet associate is being knowledgeable of how to parse XML into a Python structure. Data can be retrieved from devices using different data structures such as XML, YAML, or JSON. In this lab, I’ll look at parsing XML into a useable structure within Python.
Committing To Think Python Think Python is a free book written by Allen B. Downey. It’s the second edition which covers Python 3. Think Python replaces his original book, How To Think Like a Computer Scientist: Learning with Python. Allen B. Downey is a computer scientist and professor. In August 2018, I had
Python Day 4: Dictionaries Dictionaries Indexes for dictionaries are called keys. Keys are associated with a value called a key-value pair. A dictionary is unordered. Compared to a List, there is no index starting at 0. Dictionaries are typed with braces [python]{}[/python]. To assign a dictionary to the client1 variable: [python]client1
Python Day 3: List Methods The previous day went over the basics of the Python List. On this day I go a little further into List Methods. List Methods allow you to work with the items within a List. With methods such as removing and sorting. Useful methods when working with a list at any
Python Day 2: Lists Lists look like they'll be useful when I get to a point where I can write scripts. Python Lists can hold multiple values in an ordered sequence. Within the list are items which are ordered by an index. The index starts with 0. Each item is separated by
Python Day 1: Functions The start of my 30 Days of Code begins with Functions. I had already read about flow with For and While loops. Today I read into Functions. Functions are like independent programs within a program. And it is defined before it is ever called. [python] def myFunction(): print('Hello