title: How do you correctly test for divisibility in python
body: <p>I wrote some code to evaluate the integers between x and y and check for divisibility by the integers 3 and 5.
  This is the code.</p>
  
  <pre><code>def div_3_5(start, end):
      result = 0
      result2 = 0
      result3 = 0 
      while start &lt; end:
          result2 = start + result 
          result = result2 - start + 1
          if result2 % 3==0 or 5==0:
              result3 = result3 + 1 
          else:
              result3 = result3 + 0
          return result3
  </code></pre>
  
  <p>I'm just a beginner but everything seems fine in the code of course unless I have used the "or" statement incorrectly or checked for divisibility incorrectly. Which brings me to the main question. Any help would be appreciated.  </p>