-2
Implement a Python function that takes a string as a parameter and prints the vowels of that string.
Example:
string univesp
must print out the characters 'u'
, 'i'
and 'e'
.
I managed to do it here, but it’s not what was asked.
str = ['univesp']
for palavra in str:
for c in palavra:
if c in 'aeiou':
print(c)
I tested it here and it worked. You want to print everything on the same line?
– Evilmaax