Fix missing bracket in ex3_6

This commit is contained in:
Aymane Boumaaza
2023-08-06 22:45:17 +01:00
committed by GitHub
parent d540e77118
commit ccfcd4cb9f

View File

@@ -146,7 +146,7 @@ Try it out:
>>> from tableformat import create_formatter >>> from tableformat import create_formatter
>>> formatter = create_formatter('text') >>> formatter = create_formatter('text')
>>> with redirect_stdout(open('out.txt', 'w')) as file: >>> 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() file.close()
>>> # Inspect the file >>> # Inspect the file