class Pig_latin(object):
  vowels = ["a", "e" , "i", "o", "u", "A", "E", "I", "O", "U"]

  def __init__(self, sentence):
    self.sentence = sentence
    print self.convert_sentence()

  def convert_sentence(self):
    new_sentence = self.sentence.split(" ")
    converted_sentence = []
    for word in new_sentence:
      if word[0] in self.vowels:
        converted_sentence.append(word)
      else:
        converted_sentence.append(''.join(self.word_converter(word)))
    return (' ').join(converted_sentence)


  def word_converter(self,word):
    solution = list(word)
    for letter in list(word):
      if letter not in self.vowels:
        solution.remove(letter)
        solution.append(letter)
      else:
        break
    solution.append("ay")
    return solution

Pig_latin("Hello eric ryan there")


@@ -105,18 +105,8 @@
 self
-, sentence
 ):%0A 
@@ -128,50 +128,401 @@
 e = 
-sentence%0A    print self.convert_sentence()
+raw_input(%22Enter a sentence to be converted into pig latin: %22)%0A    print self.convert_sentence()%0A%0A    while True:%0A      play_again = raw_input(%22Do you want to play again? Type yes or no %22).lower()%0A      if play_again == %22yes%22:%0A        Pig_latin()%0A        break%0A      elif play_again == %22no%22:%0A        print %22thanks for playing!%22%0A        break%0A      else:%0A        print %22Please type yes or no!%22%0A
 %0A%0A  
@@ -849,17 +849,16 @@
 tence)%0A%0A
-%0A
   def wo
@@ -1125,30 +1125,7 @@
 tin(
-%22Hello eric ryan there%22
 )%0A%0A

Add user functionality to Pig Latin class