Python random.choice()
Python random.choice() The choice() function in the Python programming language returns a random item from a list, tuple, or string. Syntax: random.choice(sequence) Parameters: sequence is a mandatory parameter that can be a list, tuple, or string. Returns: The choice() function…