# Write a Python program to select Random value form list of lists # Python3 code to demonstrate working of# Random Matrix Element# Using chain.from_iterables() + random.choice()from itertools import chainimport random  # initializing listtest_list = [[4, 5, 5], [2, 7, 4], [8, 6, 3]]  # printing original listprint("The original list is : " + str(test_list))  # choice() for random number, from_iterables for flatteningres = random.choice(list(chain.from_iterable(test_list)))  # printing resultprint("Random number from Matrix : " + str(res))