Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dictionary generator
#2
That depends on you and what you want. The code you have above needs some tweaks (Some of the "V" are not quoted and it looks like none of the "Hz" are quoted). But otherwise it creates a dictionary from static data.

If you want to create a dictionary from dynamic data, you need to figure out where the data will come from. A file? CLI input? Database? GUI?
Reply


Messages In This Thread
Dictionary generator - by Irv1n - Jul-20-2021, 04:12 PM
RE: Dictionary generator - by bowlofred - Jul-20-2021, 04:30 PM
RE: Dictionary generator - by Irv1n - Jul-20-2021, 04:56 PM
RE: Dictionary generator - by deanhystad - Jul-20-2021, 04:36 PM
RE: Dictionary generator - by Yoriz - Jul-21-2021, 10:11 PM
RE: Dictionary generator - by naughtyCat - Aug-18-2021, 06:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  receive from a generator, send to a generator Skaperen 9 5,693 Feb-05-2018, 06:26 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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