The Python programming language, tutorials, and more

257 326,163 31,928
articles words lines of code

How can you find the longest substring that contains only unique characters?

Today I learned how to use the function operator.methodcaller.

Today I learned how to use the dunder method __init_subclass__ to be notified when a class is subclassed.

Today I learned how to issue user warnings like DeprecationWarnings or SyntaxWarnings.

This tutorial shows how to use a simple genetic algorithm to deduce physics formulas.