string = (
    """Saturday and Sunday and Monday and Tuesday and Wednesday and Thursday and Friday are days of the week."""
    )
string.replace(' and ', ', ', string.count(' and ') - 1)
To replace but the last occurrence of string in a text