def isList(x):
   """
   returns True if argument is of type list, otherwise False

   >>> isList(3)
   False
   >>> isList([5,10,15,20])
   True
   """

   return ( type(x) == list )   # True if the type of x is a list