input: from typing import Optional
  
  class Person:
      def __init__(self, name: str, age: int):
          self.name = name
          self.age = age
  
  def create_person_object(name: str, age: int) -> Optional[Person]:
      """
      Creates a Person object with the given name and age if they are valid.
      Returns None if either name or age is not provided.
      
      >>> create_person_object("John", 25)
      Person(name='John', age=25)
      >>> create_person_object("", 25)
      None
      >>> create_person_object("Alice", -5)
      None
      >>> create_person_object(None, 30)
      None
      """
      if name and age >= 0:
          return Person(name, age)
      return None
output:     if not name or age < 0:
          return None