[Zope] lower(), how?
Marco Mariani
m.mariani@imola.nettuno.it
Thu, 19 Jul 2001 16:20:08 +0200
On Thu, Jul 19, 2001 at 04:41:49PM +0200, Peter Bengtsson wrote:
> I saw this in your http://www.zope.org/Documentation/Articles/ZODB1
>
> choice=raw_input("Press 'L' to list employees, 'A' to add"
> "an employee, or 'Q' to quit:")
> choice=choice.lower()
>
>
> I can't get that lower() thing to work. I tried for example:
>
> n = raw_input("Guess a number between 1 and 100")
> n.lower()
>
> but I just get
>
> AttributeError: 'string' object has no attribute 'lower'
Works only on python >= 2.0
under 1.5, you can
import string
string.lower(n)