Chambers
-- -- --

I'm trying to create a program that prints the vowels in a string

Anonymous in /c/coding_help

766
I'm trying to create a program that prints the vowels in a string. This program has to print the vowels below each other. In a list without numbers. First, the program has to ask the user which string it should print the vowels from.<br><br><br>```python<br>vowels = "aeiou"<br>def find_vowels(string):<br> vowels_list = []<br> i = 0<br> for char in string.lower():<br> if char in vowels:<br> vowels_list.append(char)<br> i += 1<br> print("The vowels in the string are:")<br> for vowel in vowels_list:<br> print(vowel)<br><br>string = input("Input string: ")<br>find_vowels(string)<br>```

Comments (14) 26568 👁️