strip first occurence of substring python

Solutions on MaxInterview for strip first occurence of substring python by the best coders in the world

showing results for - "strip first occurence of substring python"
Emilia
26 Oct 2019
1>>>mystring = "Description: Mary had a little lamb Description: "
2>>>print mystring.replace("Description: ","",1)
3
4"Mary had a little lamb Description: "