mattia gervaz at
Sat Oct 17 13:01:35 CEST 2009

Il Fri, 16 Oct 2009 21:04:08 +0000, mattia ha scritto:

> Is there a way to print to an unbuffered output (like stdout)? I've seen
> that something like sys.stdout.write("hello") works but it also prints
> the number of characters!

Another question (always py3). How can I print only the first number 
after the comma of a division?
e.g. print(8/3) --> 2.66666666667
I just want 2.6 (or 2.66)

Thanks, Mattia

More information about the Python-list mailing list