File: class/Extras/Other/PriorClasses/scotts-sep12/py30-print.txt

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\mark>c:\python32\python
Python 3.2.3 (default, Apr 11 2012, 07:12:16) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> print(1)
1
>>> print(1, 2, 3)
1 2 3
>>> print(1, 2, 3, sep="$", end='', file=open('log.txt', 'a'))
>>> open('log.txt').read()
'1$2$3'
>>>
>>> print >> open('log.txt', 'a'), 1, 2, 3,
KeyboardInterrupt
>>>
>>> from __future__ import print_function
KeyboardInterrupt
>>>
>>>



[Home page] Books Code Blog Python Author Train Find ©M.Lutz