Python Forum
Presenting data from a dictionary in a basic table
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Presenting data from a dictionary in a basic table
#3
Thanks @Larzo60+!
That did the trick.

Any idea on how to print the dictionary keys and values in columns inside the __str__ method?

With the way my code is written now the output I get is:
Keys Values
dict_keys([]) dict_values([])
Reply


Messages In This Thread
RE: Presenting data from a dictionary in a basic table - by ijosefson - Oct-16-2017, 01:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Changing the content of the table and saving the new data into another file femke_pythonquestion123 1 2,178 Sep-18-2020, 12:06 PM
Last Post: femke_pythonquestion123
  Read data from a CSV file in S3 bucket and store it in a dictionary in python Rupini 3 9,896 May-15-2020, 04:57 PM
Last Post: snippsat
  printing data from dictionary kiki1113 4 81,640 Nov-20-2017, 04:43 PM
Last Post: heiner55

Forum Jump:

User Panel Messages

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