Photo by Hitesh Choudhary on Unsplash

What is the first thing that you have done when you started learning python programming?
I am quite sure that we all have started our python journey with the “Hello World” program. In python, it can be done in a single line :

print(“Hello World”)

But, have you ever faced the pain while printing a dictionary, a list, or any other complex data type using print() function? We often encounter difficulties in readability in the output of python nested data structures due to improper indentation issues.

Still didn’t get which issue I am talking about?
Let’s try out code here:

Antaripa Saha

NLP & Data Science lover | Pythoner by heart | Content writer | Tableau | I idolize Abhishek Thakur, Parul Pandey and few others!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store