Advertisement
Guest User

Eh mah gerd converter

a guest
Aug 3rd, 2012
852
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement