title: why am I getting a ZeroDivisionError: integer division or modulo by zero?
body: <p>I'm creating a simple function that takes user input and uses it as a divisor for numbers to 100. Why am I getting a ZeroDivisionError: integer division or modulo by zero?</p>
  
  <pre><code>def divisor():
      num = int(input('Please input a number. It will be used as a divisor. '))
      for i in range(0,100):
          if num%i == 0:
              print(i)
  </code></pre>