Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
How do I generate vowels array from an array..if anyone know the answer?
I want to generate vowels array from an array
2 Respostas
+ 3
You can use the filter function, or a list comprehension in Python.
0
Hint:
ā¢ Initialize the string variable
ā¢ you can store the value or take the input from the user and store in string variable
ā¢ Initialize the count variable is 0
ā¢ Now, in for loop:
-> Initialize the i variable
-> i is less than of string length
-> then you can increment the variable i
ā¢ check the vowels through if-else condition
ā¢ now, you can also increment count variable
ā¢ and finally, the total number of vowels print.
This is not a platform to give you readymade programs, you can take the help from internet, and if you have a doubt in your code then share your attempt.