I have a list of lists, and will do a search on it which will yield just one result. The following code works but isn't intuitive because it doesn't really express the intent of what I'm trying to do... it looks like I'm trying to return a list, and just happen to want to return the first item in the last: which isn't true, as I always will want just one item, never a list. Anything more intuitive here?
game = [g for g in games if g.num==5 and re.search("ucla", g.a_name, re.I)][0]