def get_project_name(project_id, projects):
 for project in projects:
  if (project_id == project.id):
   return project.name

def get_project_name ( project_id , projects ) : for project in projects : if ( project_id == project . id ) : return project . name
retrieves project name for given project id args: projects: list of projects project_id: project id returns: project name or none if there is no match .