read from stdin python and store in a variable code example Example: input stdin python import sys data = sys.stdin.readline() sys.stdout.write('Dive in')