Stupid String Question
Brian & Colleen
greybria at direct.ca
Tue Mar 20 23:47:57 EST 2001
I know I've seen this somewhere but dejanews has not yielded the answer
with a variety of searches.
What is the pretty way to generate a string of 30 asterisks. I'm sure
it's not:
def fill(c,n):
s=''
for i in range(n):
s=s+c
return s
a=fill('*',30)
--
Brian Smith
greybria at direct.ca
http://mypage.direct.ca/g/greybria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20010320/e4a648a1/attachment.html>
More information about the Python-list
mailing list