SyntaxFix
Write A Post
Hire A Developer
Questions
Short and sweet:
def remove_prefix(text, prefix): return text[text.startswith(prefix) and len(prefix):]