Let's say I have a list of colours, colours = ['red', 'blue', 'green', 'purple']
.
I then wish to call this python function that I hope exists, random_object = random_choice(colours)
.
Now, if random_object holds 'blue', I hope colours = ['red', 'green', 'purple']
.
Does such a function exist in python?