l[i:i+1] in (a, b)

This commit is contained in:
Wannes-Sys 2023-06-20 16:07:26 +00:00
parent ecac93a02b
commit 46cceab34b
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
l = [None] * 10
[_ for i,_ in enumerate(temp) for l[i] in [i*5]]
[_ for i,_ in enumerate(l) for l[i] in [i*5]]
print(l)
# and now with dicts, cause it works too