input: Write a function to clean up a list of emails and put them into a new list. The function should remove parts of the email that start with '+', and if the email ends with '.uk', it should remove '.uk' as well. The cleaned list of emails should be returned.
  assert clean_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 clean_emails([])==[]
  assert clean_emails(['bob@gmail.com', 'alice@yahoo.com'])==['bob@gmail.com', 'alice@yahoo.com']
output: def clean_emails(emails):
      cleaned_emails = []
      for email in emails:
          if '+' in email:
              email = email.split('+')[0]
          if email.endswith('.uk'):
              email = email[:-3]
          cleaned_emails.append(email)
      return cleaned_emails