title: Replacing words with for cycle in python
body: <p>I'd like to replace the word &quot;anywhere&quot; in the link below with each word of the list_airports. With my code I obtain only &quot;https://www.kayak.it/explore/MIL-BCN/20210809,20210831&quot;. Can you help me? Thank you</p>
  <pre><code>list_airports = ['BCN', 'REU', 'RMU', 'VLC', 'IBZ', 'ALC', 'AGP', 'MAD']
  
  link = &quot;https://www.kayak.it/explore/MIL-anywhere/20210809,20210831&quot;
  
  for airport in list_airports:
  
       link = link.replace('anywhere', airport, 1)
  
  print(link)
  </code></pre>