On Sun, 23 Apr 2017 06:21 pm, Ganesh Pal wrote:
> 1. Any better suggestion to optimize the code and any other
> observations around use of assert, generators and are exception handled
> correctly in return_matched_owner()
When to use assert:
http://import-that.dreamwidth.org/676.html
On 2017-04-23 09:21, Ganesh Pal wrote:
Hello Team,
I have a sample code that runs through the list of dictionary and return a
dictionary if the search value matched
*Sample Program:*
#!/usr/bin/python
def return_matched_owner(dict_list,search_block):
"""Accepts a list of dictionar