end_other¶
Requirements:
substrings and slicing
if, elif, else
Take two strings as input, output True
if either of the strings appears at the very end of the other string, ignoring upper/lower case differences (in other words, the computation should not be “case sensitive”). Output False
otherwise. Note: str.lower()
returns the lowercase version of a string.
This exercise was taken from codingbat.com and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java.