Help me please... I've been stuck here for weeks, i keep getting Oops, new_word should be a string
while actually it is string, and i've also coded it on Visual Studio and it runs very well. What did i do wrong?
pyg = 'ay' original = raw_input('Enter a word:') word = str new_word = str def pig_translator(): if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = word + first + pyg new_word = new_word[1:len(new_word)] print new_word return True else: print 'empty' print pig_translator()
the result if i put DAVID is avidday. which is right.. but why i keep getting the error................