[Tutor] Underlining?

Jeff Shannon jeff@ccvcorp.com
Mon, 07 Oct 2002 10:04:00 -0700


James.Rocks@equant.com wrote:

> I should have used:
>
>       string.replace(string.ljust("", len(sServer)), " ", "=")

It may be simpler to avoid the string module functions altogether.  Remember
that strings can also be multiplied, so this should probably work:

underline = "=" * len(sServer)

Jeff Shannon
Technician/Programmer
Credit International