Stupid String Question

Siggy Brentrup bsb at winnegan.de
Wed Mar 21 12:26:26 EST 2001


Brian & Colleen <greybria at direct.ca> writes:

> 1.  (*) text/plain          ( ) text/html           

Please don't send the same text twice in one message.

> 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)

a = '*'*30

HIH
  Siggy
-- 
Siggy Brentrup - bsb at winnegan.de - http://www.winnegan.de/
****** ceterum censeo javascriptum esse restrictam *******





More information about the Python-list mailing list