Python sys.stdin/stdout

stdin is used for all interactive input, including calls to input().
stdout is used for the output of print() and expression statements and for the prompts of input()

For sys.stdin, you can use

  • sys.stdin.readline()
  • sys.stdin.readlines()

For more details, read the reference articles.

Reference

  1. Chapter 20 - The sys Module https://python101.pythonlibrary.org/chapter20_sys.html

    (this is a good website for python learner)

  2. Python Concepts/Console Input https://en.wikiversity.org/wiki/Python_Concepts/Console_Input