Artificial creating of [Lists], is it possible? the best way...
MRAB
python at mrabarnett.plus.com
Thu Nov 16 19:04:16 EST 2017
On 2017-11-16 18:47, jakub.rajcok at gmail.com wrote:
> Hello, im working on school project, its deck game Sorry!
> I need to create specific lists:
> My idea is about to using for
> For i in range (n):
> i=[]
> I know, that there is no possibility to make it from number, but i havent idea, how to reach my wants Li/L"i"/L(i), how to make possible for lists?
>
>
If you want multiple lists, make a list of lists:
my_lists = []
for i in range(n):
my_lists.append([])
Then you can say my_lists[0], my_lists[1], etc.
More information about the Python-list
mailing list