How do I generate vowels array from an array..if anyone know the answer? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How do I generate vowels array from an array..if anyone know the answer?

I want to generate vowels array from an array

17th Jul 2023, 6:35 PM
Meem Kaaf
Meem Kaaf - avatar
2 Respostas
+ 3
You can use the filter function, or a list comprehension in Python.
18th Jul 2023, 4:23 AM
Tibor Santa
Tibor Santa - avatar
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.
17th Jul 2023, 6:47 PM
Sakshi
Sakshi - avatar