From 3fa13998808345d1ca6a5845be86da86d5259ee7 Mon Sep 17 00:00:00 2001 From: Wannes-Sys Date: Tue, 20 Jun 2023 12:49:16 +0000 Subject: [PATCH] 'loops2.py' toevoegen --- loops2.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 loops2.py diff --git a/loops2.py b/loops2.py new file mode 100644 index 0000000..68ccbfd --- /dev/null +++ b/loops2.py @@ -0,0 +1,7 @@ +l = [None] * 10 +[_ for i,_ in enumerate(temp) for l[i] in [i*5]] +print(l) + +d = {i:i for i in range(10)} +[_ for i,_ in enumerate(d) for d[i] in [i*5]] +print(d) \ No newline at end of file