How to convert an improper fraction to a mixed number, using python
<p>I have to write a program that converts an improper fraction to a mixed number. Prompt the user for the numerator and the denominator, then calculate and display the equivalent mixed number. numerator is 23 and denominator is 6.</p>

<p>This is what I have so far...</p>

<pre><code>num = int(input('Type numerator'))
dem = int(input('Type denominator'))
</code></pre>

<p>I'm not exactly sure what the next step is...I know the answer is supposed to be The mixed number is 3 and 5/6.</p>