# Write a Python program to Words Frequency in String Shorthands # Python3 code to demonstrate working of # Words Frequency in String Shorthands# Using dictionary comprehension + count() + split()  # initializing stringtest_str = 'Gfg is best . Geeks are good and Geeks like Gfg'  # printing original stringprint("The original string is : " + str(test_str))  # Words Frequency in String Shorthands# Using dictionary comprehension + count() + split()res = {key: test_str.count(key) for key in test_str.split()}  # printing result print("The words frequency : " + str(res)) 