title: Divisors of a number in Python
body: <p>I've tried to write a peice of  code in python that prints all the divisors of a number including itself. it doesn't work correctly can anyone see why?</p>
  
  <pre><code>def divisors(num):
  
      for x in range (1, num):
          if (num % x) == 0:
              print(x)
  
  
  print("Divisors of 6 are")
  
  print(divisors(6))
  </code></pre>