Zachary Ware added the comment:
This is not a bug, it's a side effect of using the REPL for this test and not
assigning the return value of `sys.stdout.write` to anything. Try the
following:
>>> import sys
>>> character_count = sys.stdout.write('python\n') # note trailing newline
python
>>>
Zachary Ware added the comment:
Of course, I realize after clicking "submit" that my character count there is
actually wrong, and should be 7. That's what I get for writing out the example
instead of actually running and copying it :)
--
___
Pytho
New submission from David Albert Torpey :
$ python3.5
Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 08:49:46)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.stdout.write('python')
python6
-