input: Write a function to clean up a list of emails and put them into a new list by removing any characters after the '+' sign and any '.uk' domain extensions. Return the cleaned list.
  
  assert cleanup_emails(['bob@example.com', 'alice+bob@cafe.com', 'bob@gmail.com.uk', 'bob+alice@example'])==['bob@example.com', 'alice@cafe.com', 'bob@gmail.com', 'bob@example']
  assert cleanup_emails(['bob+alice@gmail.com.uk'])==['bob@gmail.com']
  assert cleanup_emails([])==[]
output: def cleanup_emails(emails):
      cleaned_emails = []
      for email in emails:
          if '+' in email:
              email = email.split('+')[0]
          if '.uk' in email:
              email = email.split('.uk')[0]
          cleaned_emails.append(email)
      return cleaned_emails