The error message is self explanatory
Quote:TypeError: '>' not supported between instances of 'int' and 'list'This happens when maior is zero and lista1[1] is a list (according to this line print(lista1[1]) # 38 88 11). Print both to answer the question yourself.
if lista1[1] > maior: