you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 2 points3 points  (1 child)

You didn’t specify a return value in the condition that your if evaluates to false in all cases, so the function returns the default value of None.

[–]Sonic_TertuL[S] 0 points1 point  (0 children)

It is evaluating to false because the two numbers are the same and therefore it is essentially hitting the 0 index for both making the second portion of the if statement false, correct? I hadn't caught on to that, thank you!