How to print Dictionary in tabular form?(in python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to print Dictionary in tabular form?(in python)

like hi 700 hello 600 me 900 etc.

19th Aug 2018, 5:28 AM
Rishabh Mehta
8 Answers
19th Aug 2018, 9:20 AM
HonFu
HonFu - avatar
+ 5
LAZY GHOST this question tags should not include c++, java, c, hack, hacker or go, it's confusing others which language your question was about.
19th Aug 2018, 10:14 AM
Ipang
+ 3
you can also use pandas module for it but this module does not work in sololearn playground.
19th Aug 2018, 10:02 AM
Maninder $ingh
Maninder $ingh - avatar
+ 3
thank you guyz 😍
19th Aug 2018, 12:59 PM
Rishabh Mehta
+ 2
you would iterate through it, and then print out the current key, and then the current value. use a foreach loop to iterate.
19th Aug 2018, 6:29 AM
hinanawi
hinanawi - avatar
+ 2
I don't think tabs work on sololearn but here is the answer: https://code.sololearn.com/c0k2A0et1BaF/?ref=app
19th Aug 2018, 8:47 AM
Markus Kaleton
Markus Kaleton - avatar
+ 2
HonFu thats pretty good👌.
19th Aug 2018, 9:52 AM
Markus Kaleton
Markus Kaleton - avatar
+ 1
"\t" is a tab in a string
19th Aug 2018, 8:25 AM
Markus Kaleton
Markus Kaleton - avatar