When I run:
from prettytable import PrettyTable as PTable
accounts = {
'user1': 'pass1',
'user2': 'pass2'
}
table = PTable(['Day', [*accounts.keys()]]) # creates empty table with headings
print(table)
My table looks like this:
+-----+--------------------+
| Day | ['user1', 'user2'] |
+-----+--------------------+
+-----+--------------------+
You can see that 'user1' and 'user2' are in the same column. How can I make it so that they are in separate columns?
Thank you.