title: Python Division Function
body: <p>I am working on practice homework for my computer science class and I cannot seem to figure out how to solve for the question I have been given.</p>
  
  <p>Write a function that takes two numbers, one number to be divided by the second number. The function should return the number of times the second number goes into the first and the remainder. For example, if the function is sent 9 and 5, it should return 1 and 4.</p>
  
  <p>Any ideas?</p>
  
  <p>Codes I have Tried:</p>
  
  <p>def division_function(a, b):
      first = a//b
      second = a%b
      return(first, second)</p>
  
  <p>I have also tried the general division functions within Python, but that also does not seem to be working.</p>
  
  <p>The website we use is a bit tricky, as we are not using Python itself.
  Also, I understand the "general" Python code of division, I am just trying to find other eyes, perhaps to see where I am messing up.I have only been in this class for a few days and we have not yet gone over the material, but have already been given assignments.</p>
  
  <p>Also, if this helps, I often get this error code:</p>
  
  <p>Traceback (most recent call last):
    File "/home/runner/unit_tests.py", line 12, in test_testdivRem
      self.assertEquals(divWithRem(9,5),(1,4))
  NameError: name 'divWithRem' is not defined</p>