follow https://12factor.net/ for 12 factors ; http://www.charleshooper.net/blog/briefly-operator-requirements/
A template or pattern describing a solution to a common problem is known as a design pattern. The reuse of such patterns can help speed up the software development process; You can view "Data structure" as "common data pattern"
There are all data structures available on Python.org
Examples for red black tree, see this pages https://pypi.org/project/bintrees/2.0.1/
You can import packages and call the data structures in your code
Here are just for practices on data structure concepts
In order to coding well, think about the following, 1. Efficiency. 2. Memory space, 3 Bug free with a complete testing cases
- make your code as genetic and lazy computing as possible 5. readable--write good comments 6. reuse code/cache, any code shouldn't repeated 7. wisely use decorator as much as possible