blob: 8674b3f4b391ab8e2ba6844c9863c24bfaf92b95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
sentence = input("sentence: ")
cons = 0
spaces = 0
for i in sentence:
if i == ' ':
spaces =+ 1
if i != 'a' and i != 'e' and i != 'i' and i != 'o' and i != 'u':
cons = cons + 1
print("there are", cons - 2, "consinants and", spaces + 2, "words")
|