[Tutor] Operating in Place
anand.shashwat at gmail.com
Tue Sep 28 22:12:20 CEST 2010
On Wed, Sep 29, 2010 at 1:33 AM, Corey Richardson <kb1pkl at aim.com> wrote:
> Hello tutors.
> I hate doing this:
> string = string.lower()
> Is there a way to do it without the "string =" part? Thanks.
1. string is a module which is deprecated. You should probably use str or s
in your example.
2. strings in python are immutable. If you need to change something, you
need to create a new string.
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor