code: def get_activity(self, name):
          
  
          return [a for a in self.activities if a.name == name][0]
docs: Retrieve an activity given its name.
  
          :param name: The name of the activity.
  
          :returns: The activity.