From 9c1c366a69d1a2259c20040d78e71ea89ebe480f Mon Sep 17 00:00:00 2001 From: Wannes-Sys Date: Sun, 11 Jun 2023 22:05:14 +0000 Subject: [PATCH] Python syntax is weird --- loop.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/loop.py b/loop.py index f9bfce2..9b29d02 100644 --- a/loop.py +++ b/loop.py @@ -1 +1,5 @@ -# coming soon, expect the unexpected \ No newline at end of file +# try to guess what it prints, before running it +d = {"Hello":"Heyo","World!":"Mars!"} + +l = [*(_ for ([][:], *_, [][::][::][::]) in zip(*d.items(), [[][:] for *_, in zip("12345","12345")]))] +print(l) \ No newline at end of file