File: jeringoso

package info (click to toggle)
sugar-pippy-activity 75-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,660 kB
  • sloc: python: 5,786; makefile: 16; sh: 6
file content (21 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 = 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)