Home>

There are lists for example:

List_1= [['1', '2', '3'], ['1', '2'], ['1']]

I want to get this list with dictionaries

L= [[{'Key': '1'}, {'Key': '2'}, {'Key': '3'}], [{'Key': '1' }, {'Key': '2'}], [{'Key': '1'}]]

Tell me how to get it?

What is the problem to rewrite everything in the cycle?

kotleni2021-09-19 20:42:10

What I see ... a number as a name ... not good ...

A_Vaclav2021-09-19 20:42:10

@A_vaclav, thank you for not smiley :)

kotleni2021-09-19 20:42:10