input: def can_it_fly(q, w):
      '''
      Write a python function that determines if the object q can fly, returning True if it can and False if it can't.
      The object q can fly if it is balanced (meaning it is a list that is the same forwards and backwards) and the total of its elements does not exceed the maximum allowable weight w.
  
      Example:
      can_it_fly([1, 2], 5) ➞ False 
      # The sum of 1+2 is less than the maximum allowable weight, but it is not balanced.
  
      can_it_fly([3, 2, 3], 1) ➞ False
      # It is balanced, but the sum 3+2+3 exceeds the maximum allowable weight.
  
      can_it_fly([3, 2, 3], 9) ➞ True
      # The sum 3+2+3 is less than the maximum allowable weight, and it is balanced.
  
      can_it_fly([3], 5) ➞ True
      # The sum is 3, which is less than the maximum allowable weight, and it is balanced.
      '''
output:     
      if isinstance(q, list) and q == q[::-1] and sum(q) <= w:
          return True
      else:
          return False
  