strings.pig_latin

Attributes

word

Functions

pig_latin(→ str)

Compute the piglatin of a given string.

Module Contents

strings.pig_latin.pig_latin(word: str) str

Compute the piglatin of a given string.

https://en.wikipedia.org/wiki/Pig_Latin

Usage examples: >>> pig_latin(“pig”) ‘igpay’ >>> pig_latin(“latin”) ‘atinlay’ >>> pig_latin(“banana”) ‘ananabay’ >>> pig_latin(“friends”) ‘iendsfray’ >>> pig_latin(“smile”) ‘ilesmay’ >>> pig_latin(“string”) ‘ingstray’ >>> pig_latin(“eat”) ‘eatway’ >>> pig_latin(“omelet”) ‘omeletway’ >>> pig_latin(“are”) ‘areway’ >>> pig_latin(” “) ‘’ >>> pig_latin(None) ‘’

strings.pig_latin.word