Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Eh mah gerd converter

By: a guest on Aug 3rd, 2012  |  syntax: Python  |  size: 0.58 KB  |  views: 436  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # eh mah gerd program
  2. # (c)oded by ToXic73
  3. # email: angus.moore1@education.nsw.gov.au
  4.  
  5. print 'Hi all, welcome to this program that will convert everything you say to an eh mah gerd statement.'
  6. num = int(raw_input('Enter how many statements you want to convert  '))
  7. for x in range(num):
  8.         word = raw_input('Enter the word you want to be \'eh mah gerd\'ed  ')
  9.         newword = ""
  10.         for n in word:
  11.                 if (n == "a") or (n == "e") or (n == "i") or (n == "o") or (n == "u"):
  12.                         if newword[-2:] == "er":
  13.                                 pass
  14.                         else:
  15.                                 newword += "er"
  16.                 else:
  17.                         newword += n
  18.         print 'eh mah gerd,' , newword
  19. raw_input()