Problem 176332 · easy · Phase 01 Prerequisites & Setup

Disemvowel

strings · iteration · conditionals · join

Return s with every vowel (a, e, i, o, u, in either case) removed. All other characters keep their order and case. y is not a vowel here.

Examples

Input:  s = "This website is for losers LOL!"
Output: "Ths wbst s fr lsrs LL!"

Input:  s = "AEIOU"
Output: ""

Constraints

  • 0 <= len(s) <= 5000
  • s may contain letters, digits, spaces and punctuation

Goals

  • Filter characters out of a string
  • Compare case-insensitively while keeping the original characters
Starting Python…