Text speak conversion in Python!

Want to write in txt spk like all the cool mobile-toting kids, but tired of figuring out which letters to leave out? No problem — just run your text through the handy to_txt_spk function!

>>> def to_txt_spk(words):
    return "".join(c for c in words if c not in "aeiou")

>>> to_txt_spk("Impress your friends with your text speak skillz!")
'Imprss yr frnds wth yr txt spk skllz!'

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>