[python]list comprehension and lambda function

The below is a code sample without using list comprehension or lambda function just a straight forward to enumerate through items in a list of dictionary to try to find a match in name. To test the above, print(search('John')) result is : John another test, print(search('cyrus')) result is : cyrus is not found.. Lambda function … Continue reading [python]list comprehension and lambda function

[python]Regular expression

I have been avoiding regex for years as I find it very intimidating, however it seems this is a necessary skill to learn to build real things, I have real use cases to match for routes, access-lists and interfaces of routers and firewalls. Here is a code snippet for the regex block, in this code … Continue reading [python]Regular expression