Dictionary Comprehensions

Run Settings
LanguagePython
Language Version
Run Command
simple_dict = { 'a':1, 'b':2 } my_dict = {key:value**2 for key,value in simple_dict.items() if value%2 == 0} print(my_dict)
Editor Settings
Theme
Key bindings
Full width
Lines