Question: 2. Write a script called countLetters which prompts the user to enter a word. The script should then display the number of letters in

2. Write a script called countLetters which prompts the user to enter

2. Write a script called countLetters which prompts the user to enter a word. The script should then display the number of letters in the word. Your script should run as follows:- Please enter word hello 5 3. Modify your previous countLetters script so that it displays the number of letters as part of a sentence: 'The word ...... has letters'. ..... Your script should run as follows:- Please enter word hello The word hello has 5 letters

Step by Step Solution

3.50 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Here are two versions of the countLetters script in Python V... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!