Hello I have a python variable with List plus dictionary
>>> print (b[0])
{'peer': '127.0.0.1', 'netmask': '255.0.0.0', 'addr': '127.0.0.1'}
-----------------------------------------------------------------------
>>> print (b)
[{'peer': '127.0.0.1', 'netmask': '255.0.0.0', 'addr': '127.0.0.1'}]
>>>
I have tried everything But I couldn't get 'addr'
extracted.
Help Please.
try this:
Read about python data structure here Data structure