code: def attended_by(self, email):
          
          for attendee in self["attendees"] or []:
              if (attendee["email"] == email
                      and attendee["responseStatus"] == "accepted"):
                  return True
          return False
docs: Check if user attended the event