Pig Latin Translator
Hereās pig latin dialect that takes into account how the words are pronounced: #!/usr/bin/env python # -*- coding: utf-8 -*- import re sentences = ["Pig qoph an egg.", "Quiet European rhythms.", "My nth happy hour.", "Herb unit -- a dynasty heir."] for sent in sentences: entsay = " ".join(["".join(map(to_piglatin, re.split("(\W+)", nonws))) for nonws in sent.split()]) print(u'"{}" āā¦
View On WordPress












