input: Write a function to clean up a list of emails and put them into a new list. The function should remove any email addresses that contain '+' or '.uk' in their domain part and return the cleaned list.
  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(['alice@c.com', 'bob+alice@g.co.uk'])==['alice@c.com', 'bob@g.co']
  assert clean_emails(['adam@x.com', 'eve@y.com.uk'])==['adam@x.com', 'eve@y.com']
  assert clean_emails([])==[]
  assert clean_emails(['jim.uk@mail.uk'])==['jim']
output: def clean_emails(emails):
      cleaned_emails = []
      for email in emails:
          if '+' in email or '.uk' in email:
              if '+' in email:
                  email = email.split('+')[0] + email.split('@')[1]
              if '.uk' in email:
                  email = email.split('@')[0] + '@' + email.split('@')[1].replace('.uk', '')
          cleaned_emails.append(email)
      return cleaned_emails