fork download
  1. #backward writer
  2. #input msg
  3. #get begn end coords
  4. #change positions of each letter with loop and creating str
  5. word = raw_input('Enter your word\n')
  6. position = len(word) - 1
  7. wordnew = ''
  8. while True:
  9. if word != '':
  10. wordnew += word[position]
  11. position -= 1
  12.  
  13. if len(wordnew) == len(word):
  14. print wordnew
  15. break
  16.  
Runtime error #stdin #stdout #stderr 0.01s 7740KB
stdin
Standard input is empty
stdout
Enter your word
stderr
Traceback (most recent call last):
  File "prog.py", line 5, in <module>
EOFError: EOF when reading a line