Answer to Question #107264 in Python for Erwin Espinoza

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
1
Expert's answer
2020-04-02T10:11:55-0400
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())

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS