window.ENTITIES={'/api/snippets/python/python%20remove%20vowels%20from%20list%20of%20strings':[{"result":true,"message":null,"batch":{"type":"python","name":"python remove vowels from list of strings","items":[{"id":"DkwnlD","type":"python","name":"python remove vowels from list of strings","content":"import re\n\n\ndef remove_vowels(string):\n return re.sub(r'[aeiouy]', '', string, flags=re.IGNORECASE)\n\n\n# Usage example:\n\nwords = ['red', 'apple', 'dog']\nresult = map(lambda item: remove_vowels(item), words)\n\nprint(list(result)) # ['rd', 'ppl', 'dg']","source":"","author":{"id":"lD31Eo","name":"Hiba-Tate","avatar":"1629131291370__lD31Eo__w40px_h40px.jpg","points":548,"role":"BASIC"},"creationTime":1640705566000,"updateTime":null,"removalTime":null},{"id":"jPb0gD","type":"python","name":"python remove vowels from list of strings","content":"import re\n\nwords = ['red', 'apple', 'dog']\nresult = map(lambda item: re.sub(r'[aeiouy]', '', item, flags=re.IGNORECASE), words)\n\nprint(list(result)) # ['rd', 'ppl', 'dg']","source":"","author":{"id":"30RE8o","name":"Keisha-Acosta","avatar":"1629030411425__30RE8o__w40px_h40px.png","points":380,"role":"BASIC"},"creationTime":1640706198000,"updateTime":null,"removalTime":null}]}}]};