Need help with this while loop question: (Please do this in Python programming) Using while True loop that: Prompts the user to enter a word; may use one input statement in function Calculates the...



Need help with this while loop question: (Please do this in Python programming)



Using while True loop that:


Prompts the user to enter a word; may use one input statement in function Calculates the number of words entered with an upper case first letter Presses (hits) the Enter/Returns key on the keyboard, without typing anything to signal the end of the loop


Once the loops end, the function should return (not print) one of the following messages:


"0 words were entered"


"Words with upper case first letter = x', where x is the number of words maybe 0 if no words entered had an upper case first letter




The output needs to look like this:
(see image attached)


Enter word or press Enter/Return key:<br>'0 words were entered'<br>Enter word or press Enter/Return key: mary<br>Enter word or press Enter/Return key: had<br>Enter word or press Enter/Return key: a<br>Enter word or press Enter/Return key: little<br>Enter word or press Enter/Return key: lamb<br>Enter word or press Enter/Return key:<br>'Words with first letter in upper case = Ø'<br>

Extracted text: Enter word or press Enter/Return key: '0 words were entered' Enter word or press Enter/Return key: mary Enter word or press Enter/Return key: had Enter word or press Enter/Return key: a Enter word or press Enter/Return key: little Enter word or press Enter/Return key: lamb Enter word or press Enter/Return key: 'Words with first letter in upper case = Ø'

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here