NPTEL | Joy of computing using Python | WEEK 8 | Programming Assignment 3: Vowels
TEXT FILE: https://drive.google.com/open?id=15UO...
÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
def vow(l):
return ((l == 'a') or (l == 'e') or (l == 'i') or (l == 'o') or (l == 'u'))
def final(ip):
print(ip[0], end = "");
for i in range(1,len(ip)):
if ((vow(ip[i - 1]) != True) or
(vow(ip[i])!= True)):
print(ip[i], end = "")
ip=input()
final(ip)
÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
Given a string S of lowercase letters, remove consecutive vowels from S. After removing, the order of the list should be maintained.
Input Format:
Sentence S in a single line
Output Format:
Print S after removing consecutive vowels
Example:
Input:
your article is in queue
Output:
yor article is in qu
Explanation:
In the first word, 'o' and 'u' are appearing together, hence the second letter 'u' is removed. In the fifth word, 'u', 'e', 'u' and 'e' are appearing together, hence 'e', 'u', 'e' are removed.
On this page of the site you can watch the video online NPTEL | Joy of computing using Python | WEEK 8 | Programming Assignment 3: Vowels with a duration of hours minute second in good quality, which was uploaded by the user Ultimate Gamer 19 March 2019, share the link with friends and acquaintances, this video has already been watched 3,493 times on youtube and it was liked by 13 viewers. Enjoy your viewing!