# Write a Python program to Prefix frequency in string List # Python3 code to demonstrate # Prefix frequency in List# using loop + startswith()  # Initializing listtest_list = ['gfgisbest', 'geeks', 'gfgfreak', 'gfgCS', 'Gcourses']  # printing original listprint("The original list is : " + str(test_list))  # Initializing substringtest_sub = 'gfg'  # Prefix frequency in List# using loop + startswith()res = 0for ele in test_list:    if ele.startswith(test_sub):        res = res + 1              # printing result print ("Strings count with matching frequency : " + str(res))