Merge pull request #39 from Aymane11/main-1

Fix missing bracket in ex3_6.   Good catch!
This commit is contained in:
David Beazley 2023-08-06 19:46:06 -05:00 committed by GitHub
commit 3ac425a715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ Try it out:
>>> from tableformat import create_formatter
>>> formatter = create_formatter('text')
>>> with redirect_stdout(open('out.txt', 'w')) as file:
tableformat.print_table(portfolio, ['name','shares','price', formatter)
tableformat.print_table(portfolio, ['name','shares','price'], formatter)
file.close()
>>> # Inspect the file