Suppose I am having a Dictionary in the following format.
new_dict = {'worry': [23, 667, 1692, 1940], 'win': [96, 200, 286], 'work': [833, 1458]}
I want to print only the key
only keys based on the values between 0 to 100.
Output in this case:
{'worry', 'win'}
I have tried:
dict0100 = {k:v for (k,v) in new_dict.items() if new_dict.values(range(100))}
I am getting error like values take only 1 argument.
Note: The values range between 0 to 5000 in my case. I want only the key values between 0 to 100 only.
Any help is appreciated.