Python Program to find the words count, space count character count and vowel count from a sentence.

preview_player
Показать описание
Program:-

sentence = input("Enter a sentence:")
vowel = ['a','e','i','o','u']

length_sentence = len(sentence)

char_count = length_sentence - space_count

print("sentence := ", sentence)
print("Words count :- ",words_count)
print("Space count :- ", space_count)
print("character count :- ", char_count)
print("Vowel count : - ", vowel_count)

input:-
Enter a sentence: Python programming is very easy to learn.

Output:-
sentence:= Python programming is very easy to learn.
Words count :- 7
Space count :- 6
character count :- 35
Vowel count : - 11
Рекомендации по теме
Комментарии
Автор

Thanks for the knowledge you are providing 🙏

dhwanipatel
Автор

thank u
continue more on python practise problems...

can you put a video on converting number to words program using python code..

giridharan
welcome to shbcf.ru