input: from typing import List
  
  def clean_emails(emails: List[str]) -> List[str]:
      """ Cleans up a list of emails by removing any trailing parts after a '+' and 
      removing the '.uk' extension if present. Returns the cleaned list of emails.
      >>> 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']
      """
output:     cleaned_emails = []
      for email in emails:
          if '+' in email:
              email = email.split('+')[0]
          if '.uk' in email:
              email = email.replace('.uk', '')
          cleaned_emails.append(email)
      return cleaned_emails