Articles tagged with: Python

Python Imports 101

Summary: Explains Python import basics, relative vs. absolute imports, import resolution, and provides examples to clarify common import scenarios.


Markov Model Python Example

Summary: A Python example of a Markov model. How to implemented a Markov chain to generate sentences based on a given text file. Describes the process of building a dictionary of word chains and demonstrate how the model can generate sentences.


Always use linters and auto-formatters

Summary: Using linters and auto-formatters can ensure consistent and uniform code, improve code reviews, and eliminate trivial issues. Examples of linters and formatters for Python and JavaScript.


Book Review: Python testing with Pytest

Summary: Review of the book 'Python testing with Pytest' by Brian Okken.


Python Hashbang/Shebang

Summary: The use of hashbangs or shebangs in Python scripts.