title: For loop should loop 9 times, instead loops once
body: <p>The following code should be taking two numbers from the user and then state which number is higher, 9 times, thus "counter &lt;10 " except it only takes the two numbers once, and then the loop is finished. I thought I could increment the loop by using "counter=counter +1" in my loop, but it doesnt seem to work. Any help would be appreciated, thanks!</p>
  
  <pre><code>counter = 0
  for counter in range(counter &lt; 10):
      num1 = float(input("Enter number 1: "))
      num2 = float(input("Enter number 2: "))
      if num1 &gt; num2:
          print(num1)
      else:
          print(num2)
      counter = counter + 1
  </code></pre>