old_contents: class BucketList():
      '''
      Defines properties and methods for each bucket list
      '''
  
      def __init__(self, name, description):
          self.name = name
          self.description = description
          self.activities = []
          self.no_of_activities = len(self.activities)
  
      def add_activity(self, activity):
          '''Adds an activity to a certain bucketlist '''
          self.activities.append(activity)
          return True
  
new_contents: class BucketList():
      '''
      Defines properties and methods for each bucket list
      '''
  
      def __init__(self, name, description):
          self.name = name
          self.description = description
          self.activities = []
          self.no_of_activities = len(self.activities)
  
      def add_activity(self, activity):
          '''Adds an activity to a certain bucketlist '''
          self.activities.append(activity)
          return True
  
      def delete_activity(self, activity):
          for item in self.activities:
              if activity.title == item.title:
                  self.activities.remove(activity)
                  break
          
          return True
          
  
subject: Add delete activity method in bucketlist class