You can download this code by clicking the button below.
This code is now available for download.
Randomly select an element from the given list.
Technology Stack : random
Code Type : Function
Code Difficulty : Beginner
def random_choice(items):
import random
return random.choice(items)