diff options
author | Dario Clavijo <daedalus2027@gmail.com> | 2011-01-13 04:55:14 (GMT) |
---|---|---|
committer | James Cameron <quozl@laptop.org> | 2011-01-27 07:41:38 (GMT) |
commit | b732580e43fa0f73511f25622f5de95ccc3eee84 (patch) | |
tree | 82fe4c9c4c88a74081446637e91e57522f22b467 /data/string/jeringoso | |
parent | e4f74b89a90cd372aa4eb03755c268db2c05f74a (diff) |
Add life, factorial, and jeringoso samples
Co-authored-by: James Cameron <quozl@laptop.org>
Diffstat (limited to 'data/string/jeringoso')
-rw-r--r-- | data/string/jeringoso | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/data/string/jeringoso b/data/string/jeringoso new file mode 100644 index 0000000..e24c069 --- /dev/null +++ b/data/string/jeringoso @@ -0,0 +1,21 @@ +# jeringoso is an innocent spanish way to talk used by kids, +# you need to add an "p" before earch spanish vowel (a,e,i,o,u) and +# the same vowel after the "p" +# then you got a funny way to talk that parents will not understand. +# ref: http://en.wikipedia.org/wiki/Jeringonza + +# first we define the spanish vowels +vowels = ['a', 'e', 'i', 'o', 'u'] + +# then we ask for a string to make the replacements +text = raw_input("Please input your text to translate to jeringoso:") +length = len(text) +jeringoso = "" +for i in range(length): + char = text[i] + if char in vowels: + jeringoso = jeringoso + char + "p" + char + else: + jeringoso = jeringoso + char + +print jeringoso |