0
Why it is no working in this app?
vowel = ('a', 'e', 'i', 'o', 'u') sentence = input("Enter a sentence: ") sentence = sentence.lower() count = 0 for input_letter in sentence: Â Â Â if input_letter in vowel: Â Â Â Â Â Â Â count += 1 print(count)
4 Answers
+ 1
In loop , remove indenation spaces and add again. Those are currently invalid characters.
+ 2
vowel = ('a', 'e', 'i', 'o', 'u')
sentence = input()
sentence = sentence.lower()
count = 0
for input_letter in sentence:
if input_letter in vowel:
count += 1
print(count)
0
vowels = ('a', 'e', 'i', 'o', 'u')
sentence = input().lower()
print(sentence)
count = 0
for letter in sentence:
if letter in vowels:
count += 1
print(count)
In my case its working.
0
it's all about retreats. I copied the code from the PC and the app did not recognize them correctly