Not a member of Pastebin yet? Sign Up, it unlocks many cool features! 
 - import sys
 - class Redirect(object):
 - input = None
 - output = None
 - def __init__(self,inObj,outObj):
 - self.input = inObj
 - self.output = outObj
 - def readline(self):
 - response = self.input.readline()
 - self.output.write(response)
 - return response
 - if __name__ == "__main__":
 - if not sys.stdin.isatty():
 - sys.stdin = Redirect(inObj=sys.stdin,outObj=sys.stdout)
 - a = input("Enter a String:")
 - b = input("Enter another String:")
 - print("Entered strings include: {} and {}".format(repr(a),repr(b)))
 
 Add Comment 
  Please, Sign In to add comment