If you return None (read the note, null is for javascript and some other languages, for Python it is None) inside your loop, you're only comparing the first two values. You could explicitly return None at the end of your code, but it is the default returned value.
If you return
None
(read the note,null
is for javascript and some other languages, for Python it isNone
) inside your loop, you're only comparing the first two values. You could explicitly returnNone
at the end of your code, but it is the default returned value.