Extract a substring from a string in Python The Problem How do I extract a substring from a string in Python?