[Tutor] end parameter in 2.7.1?

Karim karim.liateni at free.fr
Sat Jan 15 21:34:20 CET 2011


IN 3.1 for print():

 >>> print('hello', end =' ')
hello>>>

It suppress the newline character.


On 01/15/2011 07:05 PM, Emile van Sebille wrote:
> On 1/15/2011 9:35 AM Bill DeBroglie said...
>> Twice in two days...!
>>
>> Using Mac OS X 10.5.8 and Python 2.7.1 but am following a book which is
>> using Python 3.1. The author uses the end parameter
>
> What's an 'end' parameter?
>
> Emile
>
>> in numerous programs
>> but this doesn't seem to translate to 2.7. Any advice as to how I can
>> specify the final string of the print function?
>>
>> Thank you,
>> bdb
>> _______________________________________________
>> Tutor maillist - Tutor at python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list