python only replace first instance code example
Example: python replace only first instance
text.replace("text", "new", count)
# count is the number of instances you want to replace
text.replace("text", "new", count)
# count is the number of instances you want to replace