sc2simulator/scenarioMgr/scenarioPlayer.py
def exists(code, unitList):
            """identify the unit in unitList that matches code, else None"""
            for existingUnit in unitList:
                if existingUnit.code == code:
                    return existingUnit
            return None
identify the unit in unitList that matches code, else None
identify the unit in unitList that matches code, else None
identify the unit in unitList that matches code else None
def exists(code, unitList):
            for existingUnit in unitList:
                if existingUnit.code == code:
                    return existingUnit
            return None
def exists ( code , unitList ) : for existingUnit in unitList : if existingUnit . code == code : return existingUnit return None
identify the unit in unitList that matches code, else None
identify the unit in unitList that matches code else None
"""identify the unit in unitList that matches code, else None"""
code
unitList