Trying to replicate a basic column command in a Python program to print a list of States to the user via the command line:
us_states_list_with_population = [
("Alabama" , "AL" , 4903185),
("Montana" , "MT" , 1068778),
("Alaska" , "AK" , 731545),
...
]
for state_name , state_abbreviation , num_counties in us_states_list_with_population:
print(state_name + " (" + state_abbreviation + ")")
Is there an easy way to split the output into two or three columns to make this shorter and more readable?
Desired output would be something like:
Alabama (AL) Alaska (AK)
Montana (MT) California (CA)
...
Versus:
Alabama (AL)
Alaska (AK)
Montana (MT)
California (CA)
...