Question: Hello I am having some trouble having this python code retrieve the length of the phrases of a sentence input by the user. Part C
Hello I am having some trouble having this python code retrieve the length of the phrases of a sentence input by the user. Part C
- Use an iteration structure to repeat the following steps until an input phrase of at least 10 characters has been provided:
- Use the input function to prompt the user for a phrase and store the phrase as a variable.
- Mirror the phrase to the user that is, print the stored variable contents to the console with a message.
- Retrieve the length of the phrase/variable.
- If the length is less than 10:
i. Issue a message (to the console) letting the user know that they must enter a new phrase of at least 10 characters.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
