The Python programming language, tutorials, and more

260 330,557 32,230
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.