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.
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
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment