-->

Friday, February 14, 2014

Format your printed columns nicely

Simply specify the tabstop, like this:
    print (list_of_keys[i][0]+"\thas "+str(list_of_values[i])+" labels").expandtabs(15)
and this is what you get

arganzuela     has 474 labels
retiro              has 263 labels
salamanca      has 235 labels

No comments:

Post a Comment