[EMAIL PROTECTED] wrote: > I convert all to lowercase, > > import string > > small = string.lower(name) > print "Here is the calculated value:" > > print small > for ch in small: > v = ord(ch)-96 > print v >
I don't know if you are using an out of date book or what, but generally you are not going to be importing string. For example, my_str = "HELLO" small = my_str.lower() print small --output:-- hello -- http://mail.python.org/mailman/listinfo/python-list