Sayantan Datta wrote: > please help me, this code doesn't work, > the output file comes out to be empty. How do i fix it? and where is it > going wrong?
I don't know if that's a copy-n-paste error: the indentation of > if __name__ == '__main__' : > for line in sys.stdin : > for char in line : > sys.stdout.write(rotate13_letter(char)) should be if __name__ == '__main__': for line in sys.stdin: for char in line: sys.stdout.write(rotate13_letter(char)) -- http://mail.python.org/mailman/listinfo/python-list