"\" added in xpath variable code example
Example: find element by xpath add variable into string
driver.find_element_by_xpath("//option[@value='" + state + "']").click()
driver.find_element_by_xpath("//option[@value='" + state + "']").click()