On Tue, Sep 28, 2010 at 3:03 PM, Corey Richardson <kb1...@aim.com> wrote:
> Hello tutors. > > I hate doing this: > string = string.lower() > > Is there a way to do it without the "string =" part? Thanks. > Not with a string. I suppose if you had your own class you could create something, but you'd be doing the same thing behind the scenes. Is there any particular reason why you don't like doing it? It's explicit and easy to understand - saying that you want the lowercase version of the string, but you don't care about the original string. At least that's my take on it, Wayne
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor