compare the first three characters of a string

 compare the first three characters of a string


    s=input()

    p=input()

    print(s[:3]==p[:3])

Comments