Files
30-seconds-of-code/test/keys_only/keys_only.py
2018-04-18 12:20:52 +00:00

5 lines
110 B
Python

def keys_only(flat_dict):
lst = []
for k, v in flat_dict.items():
lst.append(k)
return lst