stdin of the sys module is a file object : Sys : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Sys »

 

stdin of the sys module is a file object


# text is read from stdin using the readline() function

import sys

text = sys.stdin.readline()
print text



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Module
» Sys