From 1337d3ce8a516bdaf2ca296196ef0530a672b327 Mon Sep 17 00:00:00 2001 From: TheDevKiller Date: Wed, 7 Nov 2018 23:10:52 +0100 Subject: [PATCH] Improved the dict print --- fetch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index 40eb613..3675636 100755 --- a/fetch.py +++ b/fetch.py @@ -25,4 +25,9 @@ def runfetch(url): if __name__ == '__main__': diclist=runfetch('https://www.legifrance.gouv.fr/eli/arrete/2018/10/12/PRMD1824595A/jo/texte') url='https://www.legifrance.gouv.fr/eli/arrete/2018/10/12/PRMD1824595A/jo/texte' - print(diclist) \ No newline at end of file + # Print the dict + print("===== Dict =====") + for index, zone in enumerate(diclist): + print(f"\n-------------{index}----------------\n") + for element in zone: + print(f" {element}: {diclist[index][element]}") \ No newline at end of file