[ad_1]
@StevenRumbalski has given the right answer i.e.,
output = filter(lambda k: 5 <= dict1[k] <= 8, dict1)
[ad_2]
solved Use filter method and find the keys with values between 5 to 8 from the given dictionary
[ad_1]
@StevenRumbalski has given the right answer i.e.,
output = filter(lambda k: 5 <= dict1[k] <= 8, dict1)
[ad_2]
solved Use filter method and find the keys with values between 5 to 8 from the given dictionary