Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # eh mah gerd program
- # (c)oded by ToXic73
- # email: angus.moore1@education.nsw.gov.au
- print 'Hi all, welcome to this program that will convert everything you say to an eh mah gerd statement.'
- num = int(raw_input('Enter how many statements you want to convert '))
- for x in range(num):
- word = raw_input('Enter the word you want to be \'eh mah gerd\'ed ')
- newword = ""
- for n in word:
- if (n == "a") or (n == "e") or (n == "i") or (n == "o") or (n == "u"):
- if newword[-2:] == "er":
- pass
- else:
- newword += "er"
- else:
- newword += n
- print 'eh mah gerd,' , newword
- raw_input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement