+ 6
Why Pyrhon doesn't see variable b (line 12)?
2 Antworten
+ 5
num2 is a list and num is an int so num == num2 returns False
+ 3
As Mert already mentioned, your function look_for_pol() returns False. This is then assigned to b. if b == True does fail to append b to list result, results is an empty list that creates an error by trying to use the max() function. So review line 3 and 4 of your function look_for_pol().