I don't know why it says "Vowel (s) not detected" if I enter any string starting with a consonant like "aifjooj".PLEASE HELP | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I don't know why it says "Vowel (s) not detected" if I enter any string starting with a consonant like "aifjooj".PLEASE HELP

https://code.sololearn.com/czvcQQGHvAPs/?ref=app

24th Dec 2018, 6:26 AM
Abdul S Ansari
Abdul S Ansari - avatar
3 Answers
+ 2
This is working fine for me. Your mistake was : You was directly returning string. If first character of string is vowel but the last will be not, then it will always return vowel not detected. This is an alternative way to do. https://code.sololearn.com/c6u2hR1IXpvQ/?ref=app
24th Dec 2018, 6:36 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
Raj Chhatrala Thank you so much.
24th Dec 2018, 6:39 AM
Abdul S Ansari
Abdul S Ansari - avatar
+ 1
Anna Thank you too
24th Dec 2018, 6:40 AM
Abdul S Ansari
Abdul S Ansari - avatar