Ad
  • Default User Avatar

    I don't think I understand your question. Are you trying to use the function in the code you commented on? If so, what are you trying to do?
    There shouldn't be any non-iterable int objects in the code you commented on.

    If you want to print the function, you'll use: print(openOrSenior(data)) And replace "data" with a list consisting of tuples (i.e [(24, 7), (18, 2), (66, 22)])
    If you want to make another function output into this one, you'll need to replace "data" with your function name. And you need to make sure that the output of that function is a list of tuples.

  • Default User Avatar

    how does it recognize data as a list?

  • Default User Avatar

    Can somebody please explain hor to print output to this function, since I get TypeError: cannot unpack non-iterable int object