Light Mode
Dark Mode
if word2.endswith(word1, 1)?

I see this in some of the solutions, but it completely baffles me. I know that it's to keep the function from returning True when word2 == word1, but I don't understand how! Wouldn't it see that word2 == word1 and exit with True?

Created: March 22, 2015, 8:42 p.m.
Updated: Dec. 2, 2015, 1:17 p.m.
0
5
User avatar
Hitoshura