So I have a CSV file which has three columns. I am able to read the CSV file and each row of the table is a list. However, when I try to print them like a table because of the different lengths of the text they are not aligned properly. I believe I have to format them with the % but I am not sure how to make it work. I've got more rows but for obvious reasons I would have shown only the first 3.
North America USA Washington
Europe Republic of Ireland Dublin
Asia China Beijing
This is how my lists look like:
["North America"," USA", "Washington"]
["Europe"," Republic of Ireland", "Dublin"]
["Asia"," China", "Beijing"]
Into something like this:
North America USA Washington
Europe Republic of Ireland Dublin
Asia China Beijing
I do not want to use prettyprint or similiar libraries, as I believe the solution to this problem would be more beneficial to me so that I can understand how things work.