# Write a Python program to Scoring Matrix using Dictionary # Python3 code to demonstrate working of # Scoring Matrix using Dictionary# Using loop  # initializing listtest_list = [['gfg', 'is', 'best'], ['gfg', 'is', 'for', 'geeks']]  # printing original listprint("The original list is : " + str(test_list))  # initializing test dicttest_dict = {'gfg' : 5, 'is' : 10, 'best' : 13, 'for' : 2, 'geeks' : 15}  # Scoring Matrix using Dictionary# Using loopres = []for sub in test_list:    sum = 0    for val in sub:        if val in test_dict:            sum += test_dict[val]    res.append(sum)  # printing result print("The Row scores : " + str(res)) 