'loops2.py' toevoegen

This commit is contained in:
Wannes-Sys 2023-06-20 12:49:16 +00:00
parent cf7b477fce
commit 3fa1399880
1 changed files with 7 additions and 0 deletions

7
loops2.py Normal file
View File

@ -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)