[Solved] convert the python list to the dictionary with the same key but with different values


The output that you seem to want can be obtained with :

[{"projectname" : key} for key in list1]

1

solved convert the python list to the dictionary with the same key but with different values