title: How do I write a loop to repeat the code?
body: <p>I am a very beginner in Python and I want to repeat this code. But I don't really know how to do this without &quot;goto&quot;. I tried to learn about loops but did not understand how to apply them.</p>
  <pre><code>import requests
  addr = input()
  vendor = requests.get('http://api.macvendors.com/' + addr).text
  print(addr, vendor)
  </code></pre>