code: def div(a, b):
      
      if a is None:
          if b is None:
              return None
          else:
              return 1 / b
      elif b is None:
          return a
      return a / b
docs: Divide two values, ignoring None