title: Function with if statements returns none?
body: <p>I have a function I'm writing that divides two numbers. I'm to add error messages if the user attempts 0/0 or x/0 where x is any number. Entering nonzero input yields the correct answer, but if the denominator is 0, the function prints the correct statement, followed by NONE.</p>
  
  <p>Any explanations? Here's my code:</p>
  
  <pre><code>def divide():
      num1, num2 = prompt()
      if num1 == 0 and num2 == 0:
          print "Dividing zero by zero is undefined."
      elif num1 != 0 and num2 == 0:
          print "Cannot divide by zero."
      else:
          return float(num1) / num2
  </code></pre>
  
  <p>I've seen people have this issue when printing variables, and using return solved their issue, but here I am printing a string so I don't want to use return, right?</p>