How long is that word?

Report a typo

Write a program that calculates the length of a word from the input and prints it out together with the word in the format word has N letters. There will always be more than one letter in the word.

The length of the string can be calculated with the len() function.

Sample Input 1:

serendipity

Sample Output 1:

serendipity has 11 letters
Write a program in Python 3





___

Create a free account to access the full topic