code: def is_number(string):
      
      string = str(string)
      if string.isnumeric():
          return True
      try:
          float(string)
          return True
      except ValueError:
          return False
docs: checks if a string is a number (int/float)