Fracciones mixtas en Python

num = int(input('Type numerator'))
dem = int(input('Type denominator'))

a = num // dem
b = num % dem
print 'The mixed number is {} and {}/{}'.format(a, b, dem)
Tahsin