# Given two strings, return 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"). Note:
# s.lower() returns the lowercase version of a string.
#
#
# end_other('Hiabc', 'abc') → True
# end_other('AbC', 'HiaBc') → True
# end_other('abc', 'abXabc') → True

def end_other(a, b):

    a = a.lower()
    b = b.lower()
    return a[-len(b):] == b or b[-len(a):] == a



print(end_other('abcc', 'abcxabcc'))
