# How to choose elements from the list with different probability using NumPy in Python # import numpy libraryimport numpy as np  # create a listnum_list = [10, 20, 30, 40, 50]  # uniformly select any element# from the listnumber = np.random.choice(num_list)  print(number)