input: Write a function to clean up a list of emails and put them into a new list. If an email contains a '+', remove everything after the '+'. If an email contains '.uk' at the end, remove the '.uk'. Return the cleaned list of emails.
  original_list = ['bob@example.com', 'alice+bob@cafe.com', 'bob@gmail.com.uk', 'bob+alice@example']
  assert clean_emails(original_list) == ['bob@example.com', 'alice@cafe.com', 'bob@gmail.com', 'bob@example']
  assert clean_emails(['test+email@example.com', 'another.uk@example.com.uk']) == ['test@example.com', 'another@example.com']
  assert clean_emails([]) == []
output: def clean_emails(emails):
      cleaned_list = []
      for email in emails:
          if '+' in email:
              email = email.split('+')[0]
          if email.endswith('.uk'):
              email = email[:-3]
          cleaned_list.append(email)
      return cleaned_list