Nov-08-2017, 07:11 PM
Quote: SOLVED: I was trying
if maxScore == 'None':
continue
I needed to write
if str(maxScore) == 'None':
continue
Don't use str() like this, just refer to None itself, instead of a string which happens to contain "None".
>>> x = None >>> x == "None" False >>> x is "None" False >>> x == None True >>> x is None True