7. Input and Output — Python 2.7.2 documentation
python.readthedocs.io › en › v2Input and Output — Python 2.7.2 documentation. 7. Input and Output ¶. 7.1. Fancier Output Formatting ¶. So far we’ve encountered two ways of writing values: expression statements and the print statement. (A third way is using the write () method of file objects; the standard output file can be referenced as sys.stdout .