10. Write a python program to request user to input a word then calculate then number of input letter. One of the example in the output below.
The output is:
Expected Sample Answer:
Please input a word: python
Letters 6
Sample Answer:
string_input = input("Please input a word: ") letter=0 for i in string_input: if i.isalpha(): letter=letter+1 else: pass print("Letters", letter)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)