Stupid String Question
Nils Hensel
nils.hensel at online.de
Wed Mar 21 12:23:00 EST 2001
It's
a = '*' * 30
Nils
"Brian & Colleen" <greybria at direct.ca> schrieb im Newsbeitrag
news:3AB8327C.493C70A5 at direct.ca...
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
More information about the Python-list
mailing list