/main.py Secret
Last active
December 24, 2024 19:47
gather_categories()
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
def gather_categories(json_obj): | |
categories = [] | |
for payslip in json_obj: | |
for attribute in payslip.keys(): | |
if(attribute not in categories): | |
categories.append(attribute) | |
return categories | |
def main(): | |
... | |
print(gather_categories(json_payslips)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment