Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str_1 = input("Enter The String : ")
- vow, cons = (), ()
- for i in str_1:
- if i.lower() in ('a','e','i','o','u'):
- vow += (i,)
- else:
- cons += (i,)
- print(f"Consonants in the string '{str_1}' : ", end="")
- for i in cons :
- print(i,end="")
- print(f"\nVowels in the string '{str_1}' : ", end="")
- for i in vow :
- print(i,end="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement