MCPcopy Create free account
hub / github.com/geekcomputers/Python / pig_latin_word

Function pig_latin_word

text_to_pig_latin.py:13–19  ·  view source on GitHub ↗
(word)

Source from the content-addressed store, hash-verified

11
12
13def pig_latin_word(word):
14 vowels = "AEIOUaeiou"
15
16 if word[0] in vowels:
17 return word + "hay"
18 else:
19 return word[1:] + word[0] + "ay"
20
21
22def pig_latin_sentence(text):

Callers 1

pig_latin_sentenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected