[Tutor] Underlining?

alan.gauld@bt.com alan.gauld@bt.com
Mon, 7 Oct 2002 17:36:11 +0100


>       import string
>       sServer = "SERVER 1"
>       string.translate(string.ljust("", len(sServer)), "=", " ")
> 

uline = '=' * len(sServer)

Does that do what you want?

Alan g.
Author of the 'Learning to Program' web site
http://www.freenetpages.co.uk/hp/alan.gauld