input = sys.stdin.read() how to use code example Example: python read from stdin import sys data = sys.stdin.readlines()