string1 = input("Enter a string: ") string2 = input("Enter a string: ") if string1 == string2: #compare two strings for equality. print("They are the same") elif string1< string2: print(string1, " is smaller than (i.e. alphabetically before) ", string2) else: print(string1, " is larger than (i.e. alphabetically after) ", string2) # case-sensitive # Actually, is "asciibetical" order: # all uppercase letters are before all lowercase letters # punctuation and digits are all over the place...