If you knew Python you'd know exactly what that means. But zokier is right, a map is probably a better choice here.