title: How to set variables in python script and change them each time script run?
body: <p>For example:</p>
  <p>code1</p>
  <pre><code>from selenium import webdriver
  import time
  
  def fetch():
      PATH = &quot;C:\Program Files (x86)\chromedriver.exe&quot;
      driver = webdriver.Chrome(PATH)
      driver.get(&quot;https://www.google.com/&quot;)
  
      time.sleep(2)
  
      button = driver.find_element_by_xpath(&quot;/html/body/div[1]/div[3]/form/div[2]/div[1]/div[1]/div/div[2]/input&quot;)
      button.send_keys(&quot;text1&quot;)
  
  if __name__==&quot;__main__&quot;:
      fetch()
  
  time.sleep(3)
  
  driver.close()
  </code></pre>
  <p>code2</p>
  <pre><code>from code1 import fetch
  
  for i in range(3):
      fetch()
  </code></pre>
  <p>How to set variables to change send keys in google search bar each time loop is run in range(3) text1, text2, text3 ?</p>