Oct-06-2019, 04:29 PM
Try
Dict_data = {k: v[0] for k, v in data.items()}
Create a dictionary from a list
|
|
Messages In This Thread |
Create a dictionary from a list - by klllmmm - Oct-06-2019, 04:26 PM
RE: Create a dictionary from a list - by Gribouillis - Oct-06-2019, 04:29 PM
RE: Create a dictionary from a list - by klllmmm - Oct-06-2019, 05:33 PM
RE: Create a dictionary from a list - by Gribouillis - Oct-06-2019, 05:50 PM
|