def get_exploration_titles_and_categories(exp_ids):
 explorations = [(get_exploration_from_model(e) if e else None) for e in exp_models.ExplorationModel.get_multi(exp_ids)]
 result = {}
 for exploration in explorations:
  if (exploration is None):
   logging.error('Could not find exploration corresponding to id')
  else:
   result[exploration.id] = {'title': exploration.title, 'category': exploration.category}
 return result

def get_exploration_titles_and_categories ( exp_ids ) : explorations = [ ( get_exploration_from_model ( e ) if e else None ) for e in exp_models . ExplorationModel . get_multi ( exp_ids ) ] result = { } for exploration in explorations : if ( exploration is None ) : logging . error ( 'Could not find exploration corresponding to id' ) else : result [ exploration . id ] = { 'title' : exploration . title , 'category' : exploration . category } return result
returns exploration titles and categories for the given ids .