[Tutor] Re: 'number' strings error

Christopher Peet Christopher Peet" <cpeet@point4.com
Fri, 2 Mar 2001 15:54:45 -0800


Sorry the waste bandwidth..... I just figured out I needed the string module
and string.atoi.  I got it sorted now.

Christopher Peet


----- Original Message -----
From: "Christopher Peet" <cpeet@point4.com>
To: <tutor@python.org>
Sent: Friday, March 02, 2001 2:54 PM
Subject: 'number' strings error


> When I run this I get a 'cannot assign to literal' on the number strings.
> But if I take that part out I get a 'cannot add type "int' to string'
error
> on the password =  part. What am I missing?
>
> I realize I can print after each random.choice but I'd still like to know
> how to work it this way.
>
> Thanks,
>
> Christopher Peet