title: Create a program to ask a number and print all divisors
body: <p>Below is my code:</p>
  
  <pre><code>num= int(input("Please enter number"))
  lista= []
  
  for i in range(1,100):
      if num%i ==0:
          lista.append(i)
  print(i)
  </code></pre>
  
  <p>But when I run the same, I get the below output:</p>
  
  <pre><code>Please enter number24
  99
  
  Process finished with exit code 0
  </code></pre>
  
  <p>According to the above logic, my understanding is that the loop will iterate for 99 times because of the range given, and if the remainder is zero for "i", then it should be appended on the list. Not sure where and why my logic is wrong.</p>