Timeline for how to add key and turn dictonary key to value?
Current License: CC BY-SA 4.0
Post Revisions
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Aug 26, 2021 at 9:53 | vote | accept | Nika110 | ||
| S Aug 26, 2021 at 9:53 | vote | accept | Nika110 | ||
| S Aug 26, 2021 at 9:53 | |||||
| S Aug 26, 2021 at 9:52 | vote | accept | Nika110 | ||
| S Aug 26, 2021 at 9:53 | |||||
| S Aug 24, 2021 at 13:31 | vote | accept | Nika110 | ||
| S Aug 26, 2021 at 9:52 | |||||
| Aug 24, 2021 at 13:31 | vote | accept | Nika110 | ||
| S Aug 24, 2021 at 13:31 | |||||
| Aug 24, 2021 at 13:28 | review | Close votes | |||
| Aug 28, 2021 at 0:03 | |||||
| Aug 24, 2021 at 13:10 | answer | added | Crabby Fish | timeline score: 0 | |
| Aug 24, 2021 at 13:09 | comment | added | Patrick Artner | minimal reproducible example for for loop is missing , what does "with no results" mean? | |
| Aug 24, 2021 at 13:07 | comment | added | chepner | Show your loop and its result. | |
| Aug 24, 2021 at 13:06 | answer | added | chatax | timeline score: 3 | |
| Aug 24, 2021 at 13:06 | comment | added | Thijs van Ede |
Your result is actually a list, you can achieve this using the following syntax: wanted_dict = [{"title": key, "items": value} for key, value in a.items()]. Where a is the name of your dictionary.
|
|
| Aug 24, 2021 at 13:02 | history | asked | Nika110 | CC BY-SA 4.0 |