Re: [Tutor] user created lists

2012-04-12 Thread Mark Lawrence
On 12/04/2012 05:42, john moore wrote: Hello Pyhton World, Hello Hojn Rooem and welcome :) I'm new at this and was wondering how I create a number of user specified lists? Why? Tell us what you're trying to achieve and we may well come up with a better solution. Example: "How many li

Re: [Tutor] user created lists

2012-04-12 Thread Alan Gauld
On 12/04/12 08:25, Christian Witts wrote: I recommend that you bite the bullet and use a dedicated dictionary or list to hold your five lists from the very begining: You could use globals() then instead of var(), although it's a do-it-at-your-own-risk situation then if you overwrite built-ins

Re: [Tutor] user created lists

2012-04-12 Thread Christian Witts
On 2012/04/12 08:59 AM, Peter Otten wrote: Christian Witts wrote: On 2012/04/12 06:42 AM, john moore wrote: Hello Pyhton World, I'm new at this and was wondering how I create a number of user specified lists? Example: "How many list would you like to create?" User inputs 5 creates five list

Re: [Tutor] user created lists

2012-04-12 Thread Peter Otten
Christian Witts wrote: > On 2012/04/12 06:42 AM, john moore wrote: >> Hello Pyhton World, >> >> I'm new at this and was wondering how I create a number of user specified >> lists? >> >> Example: >> >> "How many list would you like to create?" >> User inputs 5 >> creates five lists, >> list1 [] >>

Re: [Tutor] user created lists

2012-04-11 Thread Christian Witts
On 2012/04/12 06:42 AM, john moore wrote: Hello Pyhton World, I'm new at this and was wondering how I create a number of user specified lists? Example: "How many list would you like to create?" User inputs 5 creates five lists, list1 [] list2 [] list3 [] list4 [] list5 [] I can create one wit

[Tutor] user created lists

2012-04-11 Thread john moore
Hello Pyhton World, I'm new at this and was wondering how I create a number of user specified lists? Example: "How many list would you like to create?" User inputs 5 creates five lists, list1 [] list2 [] list3 [] list4 [] list5 [] I can create one with append, but I don't know how to loop it to