0
How do I generate vowels array from an array..if anyone know the answer?
I want to generate vowels array from an array
2 odpowiedzi
+ 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.