0
I need help! [ ANSWERED]
I AM TRYING TO MAKE A CODe THAt TELLS HOW MANY VOWELS ARE IN A STRING. I HAVE BEEN TRYING FOR OVER 2 DAYS. PLEASE HELP! SoRRY FOR CAPS, MY KEYBOARD IS BROKEN. LiNK: https://code.sololearn.com/cRMphEIxayCa/?ref=app
5 Respostas
+ 4
Pr0C0d3r You should do counter += 1
check like this
if (list[i])=="a" or list[i] == "e" or list[i] == "i" or list[i] == "o" or list[i] == "u":
counter+=1
i+=1
+ 1
https://code.sololearn.com/c1OIr0OwCmdi/?ref=app or just add a list of vowels at the top and an if statement in your while loop to check em. Both work
+ 1
THATS SOMETHING NEW.... THNAKS FOR THE CODE! BUT I ALREADY USED THE OTHER ONE. BUT IT IS A REALLY NICE CODE! THANKS, AND SORRY FOR CAPS.
0
THANKS DUDE! I AM GONNA GO TRY IT OUT! SORRY FOR CAPS AGAIN, KEYBARD IS BROKEN.
0
No worries, i posted it just to show there are multiple ways of getting what you want out of strings. Hope it helps