Python Programming - Console Input/Output - Discussion
Discussion Forum : Console Input/Output - General Questions (Q.No. 73)
73.
How can you prompt the user to enter a list of words, sort them alphabetically, and print the result?
Answer: Option
Explanation:
To prompt the user to enter a list of words, sort them alphabetically, and print the result, use
words = input("Enter words separated by spaces: ").split(); print("Sorted words:", sort_words(words))
.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers