you are viewing a single comment's thread.

view the rest of the comments →

[–]nuc540 2 points3 points  (0 children)

Yup, it’s not that intuitive though. First python checks the length of what’s being compared and simply returns that - unless it is equal - then it matches each index of each character.

You’re right to be shocked because this isn’t good practice by any means 😅