Menu Close

Remove the Vowels from the string

Write a program that accepts a string and redisplays the same string after removing vowels from it.

Input:
welcome

Output:
wlcm
string = input("Enter any String: ")
b=[]
c=0
for i in range(len(string)):
    if (string[i]=="a" or string[i]=="e" or string[i]=="i" or string[i]=="o" or string[i]=="u"):
        c=c+1
    else:
        b.append(string[i])
print ('\nWithout Vowels: ',*b,sep='')

INPUT_1:
Enter any String:  welcome
OUTPUT:
Without Vowels:  wlcm


INPUT_2:
Enter any String:  fcukthecode
OUTPUT:
Without Vowels:  fckthcd


INPUT_3:
Enter any String:  Pirate king
OUTPUT:
Without Vowels:  Prt kng


INPUT_4:
Enter any String:  Monkey D. Luffy
OUTPUT:
Without Vowels:  Mnky D. Lffy


ILLUSTRATION

Executed using python3 linux terminal

Morae Q!

  1. Program to get dictionary items, use update module and items module.
  2. Regular expression allowing certain set of characters.
  3. Compute the Sum of Cosine Series.
  4. Find the Sum of Sine Series.
  5. Remove the Vowels from the string.
  6. Find All Non-Overlapping strings/characters using regular expressions .
  7. Check whether the given string is Panagram or not.
  8. Replacing strings using Regular Expression Regex.
  9. Check whether the given number is Strong number or not.
  10. Find the numbers divisible by a input numbers within the given range.
  11. Change the behaviour of the Regular Expression using flags.
  12. Find the exponentiation of a number.
  13. Find all prime numbers in a range using Sieve of Eratosthenes.
  14. Convert decimal equivalent into binary, hexadecimal and octal.
  15. Compute the area of a farmers field in feet.
  16. Compute time from number of days/hours to seconds.
  17. Precompiled patterns using Regular Expressions .
  18. Compute the price of the cake on the nth day.
  19. Compute the number of possible non-increasing arrays.
  20. Find the type of spinach using the calorie value.