7 lines
158 B
Python
7 lines
158 B
Python
|
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)
|