Nov-04-2017, 07:44 PM
The 'len' function takes a string as an input and returns the length of the string. In the last line, you used the number 3 as an input to len(), which doesn't work because 3 is not a string.
If you want to find the length of the word entered by the user, write len(word)- word is the name of your variable
If you want to find the length of the word entered by the user, write len(word)- word is the name of your variable