Answer to Question #70281 in Python for Cayla Collins

Question #70281
you will write a program that will store sentences in a list and get practice with working with lists
and strings. First, ask how many sentences the user wants to store. You can assume that you will get an
integer, but if it is non-positive, default to the value of 5. Next, get the user input (i.e. the sentences) and
store them in your list in all lower-case letters. You can assume that the user will enter sentences without
the . at the end.
Next, you will loop the same number of times as the number of sentences in your list and in each iteration
you will display the following menu:
print ("Enter 1 to see a sentence")
print ("Enter 2 to see the whole list")
print ("Enter 3 to change a sentence")
print ("Enter 4 to switch words")
print ("Enter 5 to count letters")
You can assume that the user will enter an integer. Below is what you should do depending on the choice.
1
Expert's answer
2017-10-02T12:54:07-0400
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-70281.pdf

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