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)

2nd Nov 2022, 7:35 PM
Sergey Korenkov
Sergey Korenkov - avatar
4 Answers
+ 1
In loop , remove indenation spaces and add again. Those are currently invalid characters.
2nd Nov 2022, 7:42 PM
Jayakrishna 🇼🇳
+ 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)
2nd Nov 2022, 7:43 PM
JaScript
JaScript - avatar
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.
4th Nov 2022, 11:32 AM
chandrama biswas
chandrama biswas - avatar
0
it's all about retreats. I copied the code from the PC and the app did not recognize them correctly
4th Nov 2022, 11:57 AM
Sergey Korenkov
Sergey Korenkov - avatar