[Tutor] Actual code that illustrates problem
Kermit Rose
kermit at polaris.net
Fri Aug 18 17:14:43 CEST 2006
Alan Gauld wrote:
>
>>>> # print " "
>>>> # print " In strongfac "
>>>> # print " Found1: x = ",x
>>>
>>> You could do all of this with a single print:
>>>
>>> print "\n In strongfac \nFound1: x = ", x
>>>
>> uuuuuuuuuh.. Too compact for me.
>> I need to see the logic more spread out.
>
> \n is the newline character.
>
>
Ah. Thanks. Explaining the backslash n helped me understand.
I will use the backslash n to reduce lines of print statements.
Kermit < kermit at polaris.net >
More information about the Tutor
mailing list