******************************
Sorry guys this works I tested with
bad values
******************************
Hello
I'm having trouble with this function i have a list with dicts and I'm trying to make a search in the list.
The problem is that my function doesn't return the list even though i know the values and types are correct
def dbsearch(db, element, val):
for x in db:
if x.get(element) == val:
return x
else:
print "nope not in this one"
Any help or input is apreciated.