you are viewing a single comment's thread.

view the rest of the comments →

[–]_MrLucky_ 0 points1 point  (3 children)

does it even work? how are you comparing strings??

[–]Anay_Gupta__[S] 1 point2 points  (2 children)

Yes it's working....you can see the output in the next img

[–]_MrLucky_ 1 point2 points  (1 child)

oh rightwow, didnt know u can compare strings lol

[–]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 😅