stdin read python with a file code example Example: python read from stdin import sys data = sys.stdin.readlines()