diff --git a/README.md b/README.md index 0d832ab..82001a9 100644 --- a/README.md +++ b/README.md @@ -24,27 +24,18 @@ Python official page: https://www.python.org/ - [blogs](python/python-blogs/README.md) - [web](python/web/README.md) -## Python Resources - -- [Full Stack Python](https://www.fullstackpython.com/) -- [Python Cards](https://python.cards/) -- [fstrings.wtf](https://fstrings.wtf/) - -## Python EOL and Support - -- [Python EOL](https://endoflife.date/python) - -## Python Cheatsheets - -- [SpeedSheet - Python Sheet](https://speedsheet.io/s/python) -- [Comprehensive Python Cheatsheet](https://gto76.github.io/python-cheatsheet/) - -## Python Forums - -- [Discuss Python](https://discuss.python.org/latest) - -## Python Web Tools - -- [Python Tutor](https://pythontutor.com/) -- [Ty Web](https://types.ruff.rs/) -- [Ruff Web](https://play.ruff.rs/) +- ## Python Resources + - [Full Stack Python](https://www.fullstackpython.com/) + - [Python Cards](https://python.cards/) + - [fstrings.wtf](https://fstrings.wtf/) + - [Python EOL](https://endoflife.date/python) + - [SpeedSheet - Python Sheet](https://speedsheet.io/s/python) + - [Comprehensive Python Cheatsheet](https://gto76.github.io/python-cheatsheet/) + +- ## Python Forums + - [Discuss Python](https://discuss.python.org/latest) + +- ## Python Web Tools + - [Python Tutor](https://pythontutor.com/) + - [Ty Web](https://types.ruff.rs/) + - [Ruff Web](https://play.ruff.rs/) diff --git a/justfile b/justfile index ad4bd0d..40500e6 100644 --- a/justfile +++ b/justfile @@ -10,6 +10,6 @@ alias run := run-python-example @setup: pre-commit install -[working-directory: 'examples'] +[working-directory: 'python-examples'] @run-python-example target: python3 {{ target }} diff --git a/python-examples/001_table_output.py b/python-examples/001_table_output.py index 3c45b18..03e4ebc 100644 --- a/python-examples/001_table_output.py +++ b/python-examples/001_table_output.py @@ -23,7 +23,7 @@ table = PrettyTable() # Table tile -table.title = "test table" +table.title = "test table (add_row)" # Table fields style table.header_style = "upper" @@ -53,6 +53,8 @@ # Cleanup result list with `.clear()` method. result.clear() +table.title = "test table (add_rows)" + for coin in result: table.add_rows( [