[Tutor] Trivia program.
Max Noel
maxnoel_fr at yahoo.fr
Wed Feb 16 11:39:48 CET 2005
On Feb 16, 2005, at 10:26, . Sm0kin'_Bull wrote:
> it prints like...
>
> John GoodmanJohn GoodmanJohn GoodmanJohn GoodmanJohn Goodman
>
> But i want to print it like...
>
> John Goodman John Goodman John Goodman John Goodman John Goodman
>
> How can I do it?
Try replacing the called = name * 5 line with:
if not name.endswith(' '):
called = ((name + ' ') * 5).strip()
else:
called = (name * 5).strip()
-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting
and sweating as you run through my corridors... How can you challenge a
perfect, immortal machine?"
More information about the Tutor
mailing list