-
-
Save fatosmorina/bdd2cffae3d528bdd734e0f9710e9140 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
odd_valued_keys = [key for (key, value) in dictionary.items() if value % 2 == 1] | |
print(odd_valued_keys) # ['first_element', 'third_element'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment