find vowels in string python
python program to get two strings and print the vowels in string.
Sample Input 1 :
MAKE
Sample Output 1 :
A E
Try your Solution
Strongly recommended to Solve it on your own, Don't directly go to the solution given below.
#write your code here
Program or Solution
s=input("Enter a String:")
vowels=0
for i in s:
if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U'):
print(i,end=" ")
Program Explanation
visit each location in string s, if the character in the location is a vowel then print the character.Comments
Related Programs
- length of the string in python
- find a character in a String Python
- occurences of character in string python
- lowercase to uppercase in python
- uppercase to lowercase in python
- python count vowels in string
- Compare two Strings in python
- find substring in string pyhton
- occurences of substring in a String python
- Reverse the String in python
- string Palindronme in python
- Remove the spaces in String python
- Remove the Vowels in String Python
coming Soon
coming Soon