Update snippet structure to new template
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
### keys_only
|
||||
|
||||
---
|
||||
title: keys_only
|
||||
tags: object
|
||||
---
|
||||
Function which accepts a dictionary of key value pairs and returns a new flat list of only the keys.
|
||||
|
||||
Uses the .keys() method of "dict" objects. dict.keys() returns a view object that displays a list of all the keys. Then, list(dict.keys()) returns a list that stores all the keys of a dict.
|
||||
|
||||
Reference in New Issue
Block a user