A newbie that needs some HELP
Don Arnold
darnold02 at sprynet.com
Sun Nov 25 20:49:22 EST 2001
On 25-Nov-2001, "The News" <lbaker at hot.rr.com> wrote:
> Now on to the problem.
> I'm working on lists. Trying to figure them out. So I decide to write
> this
> little algorithim for user inserted lists. My proto goes as follows:
>
> monty = []
> number = input("How many Monty's are there?")
> for x in range(1,number):
> mln = input("Name a Monty?")
> monty.append(aln)
> print monty
>
> It gets through it but prints out some wierd stuff along with each listed
> monty. Can someone tell me what I'm doing wrong? Also, when I try to get
> it to repeat x at the end of "Name a Monty #", x it gives me an error.
> How
> could I get around that?
>
Use 'raw_input()' instead of 'input()'.
Don
More information about the Python-list
mailing list