At 10:02 PM 11/3/2005, Johan Geldenhuys wrote:
Found it. This is what I was
looking for:
"""
>>> print ('file'+'dir'.center(20))+('\n'+'='*15)
file dir
===
>>>
"""
I am glad you found what you wanted. I'm sad that you did not tell us
more precisely what you wanted, as we cou
Found it. This is what I was looking for:
"""
>>> print ('file'+'dir'.center(20))+('\n'+'='*15)
file dir
===
>>>
"""
It's actually a string operator 'center(width)' that I was
looking for.
I saw the '%', but that is wahat I wanted to use.
Johan
Colin J. Williams wrote:
bob wrote:
>At 11:31 AM 11/3/2005, Johan Geldenhuys wrote:
>
>
>>Hi all,
>>Just a quick question;
>>
>>How do I code this output:
>>"""
>>files dirs
>>==
>>"""
>>
>>I want to print something a few space away from the left side or in the
>>middle of the line.
>>
>>
>
>In the
At 11:31 AM 11/3/2005, Johan Geldenhuys wrote:
>Hi all,
>Just a quick question;
FWIW saying that does not help. It takes time to read it, and I can judge
the question length by reading the question. The real concern is what does
it take to construct an answer.
_
At 11:31 AM 11/3/2005, Johan Geldenhuys wrote:
>Hi all,
>Just a quick question;
>
>How do I code this output:
>"""
>files dirs
>==
>"""
>
>I want to print something a few space away from the left side or in the
>middle of the line.
In the Python Library Reference look up 2.3.6.2 S
Hi all,
Just a quick question;
How do I code this output:
"""
files dirs
==
"""
I want to print something a few space away from the left side or in the
middle of the line.
Thanks,
Johan
___
Tutor maillist - Tutor@python.org
http://m