Please have a look at below pages involving code examples in a tutorial.
https://coderr.org/python/python-for-developers/data-structure-python/
https://coderr.org/python/python-for-developers/data-structure-python/amp/
The amp version of the page is unable to show the codes. I am using GitHub gist.
Is there a workaround this problem?