for pairs of values:
[(key1, val1), (key2, val2), ...]
[keys, values] = list(zip(*KeyValueList))
https://www.geeksforgeeks.org/python-unzip-a-list-of-tuples/
[keys, values] = list(zip(*KeyValueList))
https://www.geeksforgeeks.org/python-unzip-a-list-of-tuples/
No comments:
Post a Comment