distorted output in python IDLE while using tabulate or texttable libraries

235 views Asked by At

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'], ['Alice', 24], ['Bob', 19]])
print(t.draw())

the code works fine and gives an output

but the output i got is; distorted output in IDLE how can i tackle this?

EDIT: Got the solution; change to monospaced font.(courier is a good choice)

0

There are 0 answers