Answers for "remove prefix in python 3.6"

0

remove prefix in python 3.6

def remove_prefix(text, prefix):
    if text.startswith(prefix):
        return text[len(prefix):]
    return text  # or whatever
Posted by: Guest on August-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language