Question #102445

write a program that asks the user to enter two words, change them to upper case, then prints them in alphabetical order

Expert's answer

print("Enter the first word:")

s1 = input()

print("Enter the second word:")

s2 = input()

s1 = s1.upper()

s2 = s2.upper()

print(s1 if s1 < s2 else s2)

print(s2 if s1 < s2 else s1)


LATEST TUTORIALS
APPROVED BY CLIENTS