'How can I convert a list of strings to list of dictionaries without using zip function? [closed]
How can I convert a list of strings to a list of dictionaries without using the zip function:
DomainesSavoie = [
["Portes du soleil", "Les trois vallees", "Paradiski"],
[280, 343, 235],
[650, 600, 425]
]
to the forme:
[
{"Nom": "Portes du soleil”, "nbPistes": 280, "nbKms": 650},
{"Nom": "Les trois vallees", "nbPistes": 343, "nbKms": 600} ,
...
]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
