Question #107264

Using the string methods from Unit 7, 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

first_word = input()
second_word = input()
if first_word < second_word:
    print(first_word.upper(), second_word.upper())
else:
    print(second_word.upper(), first_word.upper())
LATEST TUTORIALS
APPROVED BY CLIENTS