compare last three characters of two strings

 compare last three characters of two strings

    a=input()

    b=input()

    if(a[-3:]==b[-3:]):

        print(True)

    else:

        print(False)

Comments