A similar question I saw on Stack Overflow dealt with a dict of lists (was a bad title), and when I tried using random.shuffle
on my list of dicts per that answer, it made the whole object a None-type object.
I have a list of dictionaries kind of like this:
[
{'a':'1211', 'b':'1111121','c':'23423'},
{'a':'101', 'b':'2319','c':'03431'},
{'a':'3472', 'b':'38297','c':'13048132'}
]
I want to randomly shuffle like this.
[
{'a':'3472', 'b':'38297','c':'13048132'},
{'a':'1211', 'b':'1111121','c':'23423'},
{'a':'101', 'b':'2319','c':'03431'}
]
How can I do this?