it takes 1 minute for last five pages of the Pyglatin to finish running, is anything wrong with my codes?
We really cannot say without seeing and testing your actual code. Please post links to lessons and your code in raw text format.
pyg = 'ay' original = raw_input('Enter a word:') 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 else: print 'empty'
The code looks fine except for the inconsistent indent (four spaces recommended).
Thanks, even I modified the indentation, it was still very slow. Thus I cannot test my codes.
Try a page refresh then run again. What happens?
OK,it somehow helps. Hopefully ,refreshing the page works all the time.Thanks!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.