Jul-20-2021, 04:30 PM
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?
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?