how to save output of program input in python code example Example: input stdout python import sys data = sys.stdin.readline() sys.stdout.write('Dive in')