view reverse_lines.py @ 1:068e3e9935c1 default tip

removed the part of reading a local data file
author nvskarunakar@gmail.com
date Fri, 13 Jun 2014 14:15:40 +0530
parents 010446674569
children
line wrap: on
line source

import sys

def string_reverse(text):
    return text[::-1]
	
lines = sys.stdin.read().splitlines()
for i, line in enumerate(lines):
    print string_reverse(line);