#NEWLINE# def get_champions_by_id( ids ) : #NEWLINE# #INDENT# '\n    Gets a bunch of champions by ID\n\n    Args:\n        ids (list<int>): the IDs of the champions to get\n\n    Returns:\n        list<Champion>: the requested champions\n    ' #NEWLINE# champions = { champ . id : champ for champ in get_champions ( ) } #NEWLINE# results = [ ] #NEWLINE# for id_ in ids : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# champ = champions [ id_ ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# champ = None #NEWLINE# #UNINDENT# results . append ( champ ) #NEWLINE# #UNINDENT# return results