title: Automatically update variable data from the web in Python programming lanuage
body: <p>I have that little program </p>
  
  <pre><code>dol_rate = 0.84072
  eur_rate = 1.18957
  
  what = input("Select (A) DOL-&gt;EUR or (B) EUR-&gt;DOL: ")
  
  if what == "A" or what == "a":
  price1 = input("Enter a certain amount of US dollars: ")
  
  doltoeur = int(price1) * dol_rate
  
  print(doltoeur,"€")
  
  etc...
  </code></pre>
  
  <p>And I want to know if there is any way to update the <strong><em>dol_rate</em></strong> and <strong><em>eur_rate</em></strong> variables automatically from the web with the current dollar and euro price.</p>