i need to have some assistance with my pyglatin translator code (python) -


ok code is

pyg = 'ay' def word():     def new_word():         new_word = word + first + pyg print "to translate type word or name!" original = raw_input('enter word:') if len(original) > 0 , original.isalpha():     def new_word():         word = original.lower()         first = word[0]         new_word = word[1 : len(new_word)] + first + pyg     print "translating 1 moment..."     print "translated view below!"     print new_word     print "made by: tobias balentine" else:     print 'empty' 

thats code every thing working except part supposed translated word ill show im getting

to translate type word or name!  enter word:tobias  translating 1 moment...  translated view below!  <function new_word @ 0x021619f0>  made by: tobias balentine 

so line (<function new_word @ 0x021619f0>) supposed translated word reason not showing please somebody

pyg = 'ay' print "to translate type word or name!" original = raw_input() if len(original) > 0 , original.isalpha():     word = original.lower()     first = word[0]     new_word = word[1:] + first + pyg     print "translating 1 moment..."     print "translated view below!"     print new_word     print "made by: tobias balentine" else:     print 'empty' 

you have way many functions defined, , not using them.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -