Answer to Question #102445 in Python for Flores

Question #102445
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-02-07T05:29:21-0500

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)


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