[Solved] Use filter method and find the keys with values between 5 to 8 from the given dictionary


@StevenRumbalski has given the right answer i.e.,

output = filter(lambda k: 5 <= dict1[k] <= 8, dict1)

solved Use filter method and find the keys with values between 5 to 8 from the given dictionary