I tried to print output in a nice table using texttable, code given below
from texttable import Texttable t = Texttable() t.add_rows([[\'Name\', \'Age\'], [\'