with
open
(
"text.txt"
) as f:
txt
=
f.readlines()
keys
=
[k
for k
in
range
(0
,
len
(txt)
)]
result
=
{k:v
for
k,v
in
zip
(keys,txt[::
-
1
])}
for i in range(10):
print result[i]
2024-01-28 21:04:46
with
open
(
"text.txt"
) as f:
txt
=
f.readlines()
keys
=
[k
for k
in
range
(0
,
len
(txt)
)]
result
=
{k:v
for
k,v
in
zip
(keys,txt[::
-
1
])}
for i in range(10):