You forgot to return the result of the recursive call:
else:
return convert_to_bin(quo,list)
A recursive call returns to the caller, not the top-level frame. So a convert_to_bin()
function calling convert_to_bin()
again was ignoring the return value from the nested call, instead then returning None
as the end of function is reached.