+ 2
[SOLVED] Can you convert a list or tuple to a dictionary in python?
5 Antworten
+ 12
Sure, there is a neat zip() method for that. Check it out:
https://code.sololearn.com/cXUhNQb5tNW3/?ref=app
+ 8
You can cast a list() method on it. It will return a list with the dictionary keys as elements.
+ 2
Thanks!!!
+ 2
Then how do I turn it back to a list?
+ 2
Cool thanks, you seem to be very knowledgeable about python