As referenced by you follow PEP 8 for the fundamental content, and PEP 257 for docstring shows
Alongside Python Style Guides, I recommend that you refer the accompanying:
- Code Like a Pythonista: Idiomatic Python
- Common mistakes and Warts
- How not to write Python code
- Python gotcha
Join the python online course fast, to learn python concepts in detail and get certified.