Mega Code Archive
Categories
/
Python Tutorial
/
Buildin Module
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