Marc 'BlackJack' Rintsch wrote:
> But please don't use the functions in `string` that are also available as
> methods on strings. Those functions are deprecated.
>
>
Meaning (for newbie clarification):
instead of string.upper(s2), just do s2.upper(). For more detail, see
the docs.
--
http
On Sat, 15 Sep 2007 19:52:47 -0400, Shawn Minisall wrote:
> Hi everyone, I'm a beginning programming student in Python and have a
> few questions regarding strings.
>
> If s1 = "spam"
>
> If s2 = "ni!"
>
> 1. Would string.ljust(string.upper(s2),4) * 3 start it at the left
> margin and move it