Created
February 24, 2019 08:14
-
-
Save ant358/29b3a66ce5edd9872b52aebc0c1dfbe8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def first_n_pairs(dict_to_see, n): | |
""" Useful with large dictionarys to see what thae data looks like""" | |
a = {k: dict_to_see[k] for k in list(dict_to_see)[:n]} | |
print(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment