how do I factor a number down to one digit?

Tim Roberts timr at probo.com
Wed Mar 1 03:29:51 EST 2006


"Allan" <allan_horbach at hotmail.com> wrote:
>
>as so forth. I then input a name. How do I treat each letter as a
>single value? That is, instead of print myname I have to do a print
>m+y+n+a+m+e which returns a number. I next want to convert the
>resulting two or three digit number to a single digit. Like 123 would
>be 1+2+3 returning a 5.

Hmm, in most of the rational mathematical universes I've visited, 1+2+3
returns 6, not 5.

On the other hand, numerology doesn't really have much of a place in a
rational mathematical universe.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list