Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DevNet Help
#3
(Aug-07-2019, 05:25 PM)ichabod801 Wrote: temp['id'] = id                           # store id in the new dictionary (key = 'id')

So if you state dictionary['string'] = 'string', Python will insert your string in the line you are on in the iteration? In other words, It is stating the string 'id' is == to the var id from the previous line because dictionaries are key/value pairs and the key == the value?
Reply


Messages In This Thread
DevNet Help - by benniehanas - Aug-07-2019, 03:29 PM
RE: DevNet Help - by ichabod801 - Aug-07-2019, 05:25 PM
RE: DevNet Help - by benniehanas - Aug-07-2019, 07:41 PM
RE: DevNet Help - by ichabod801 - Aug-08-2019, 01:37 AM
RE: DevNet Help - by benniehanas - Aug-08-2019, 06:05 PM
RE: DevNet Help - by ichabod801 - Aug-08-2019, 06:28 PM
RE: DevNet Help - by benniehanas - Feb-04-2020, 11:51 PM

Forum Jump:

User Panel Messages

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