1
I have a list:
l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
I would like to choose a value between the indexes 6 and 14 of this list, but do this 5 times and store these values in another list. How do I?
If it were any index, it would be:
random.choose(l)
But that’s not what I want. Can you help me please?
in fact
l
is a list of lists, something like:l = [lista1, lista2, lista3, lista4, ..., lista15]
andlista1 = [1, 2, 3], lista2 = [4, 5, 6], etc
– Allan