Python Forum
Problem adding keys/values to dictionary where keynames = "property" and "value"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem adding keys/values to dictionary where keynames = "property" and "value"
#2
I found the answer. The json_data1 = {} just needed to be moved inside the loop. Yay!
Reply


Messages In This Thread
RE: Problem adding keys/values to dictionary where keynames = "property" and "value" - by jasonashaw - Dec-17-2019, 08:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Using Lists as Dictionary Values bfallert 8 418 Apr-21-2024, 06:55 AM
Last Post: Pedroski55
  need to compare 2 values in a nested dictionary jss 2 919 Nov-30-2023, 03:17 PM
Last Post: Pedroski55
  Printing specific values out from a dictionary mcoliver88 6 1,488 Apr-12-2023, 08:10 PM
Last Post: deanhystad
  Adding values with reduce() function from the list of tuples kinimod 10 2,777 Jan-24-2023, 08:22 AM
Last Post: perfringo
  problem adding two numpy arrays djf123 2 2,132 Aug-09-2022, 08:31 PM
Last Post: deanhystad
  Django: Adding Row Data To Existing Model Instance Question/Problem. Steven_Pinkerton 1 1,279 Aug-09-2022, 10:46 AM
Last Post: Addweb
  Subclass initialized property used in parent class method. Is it bad coding practice? saavedra29 5 1,880 Feb-07-2022, 07:29 PM
Last Post: saavedra29
Question How to print each possible permutation in a dictionary that has arrays as values? noahverner1995 2 1,787 Dec-27-2021, 03:43 AM
Last Post: noahverner1995
  ABC Module and @property decorator, Pythonic Way? muzikman 21 5,861 Aug-18-2021, 06:08 PM
Last Post: muzikman
  @property vs __set__ / __get__ and __setattr__ / __getattr__ okhajut 1 3,392 Jun-15-2021, 03:48 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020