Perhaps this a simple question with using list comprehension. How do you randomly select an entire list from a nested list? The randomly selected list should be in the same order it is in within the nested list.
[[’10’,’32’,’66’], [’78’,’501′,’23’], [’15’,’48’, ‘698’]]
Say the random selection gave me the second list in the nested list: [’78’, ‘501’, ’23’]
Thanks for any help…newbie.
In
python, you can userandom.choice()