Finding a certain dict in a list
Given both a list of dicts and an input, search for a dict that contains the input. Return that particular dict.
Sample Code:
def findDict(l,i):
# Enter your logic here...
Examples:
Input: [{id:'2'},{id:2}],2
Output: {id:2}
Explanation: Dict {id:2} has a value of 2.
Input: [{id:'2'},{id:2}],'2'
Output: {id:'2'}
Explanation: Dict {id:'2'} has a value of '2'.