If more ones than zeros , append 0 to the current number and reduce the remaining places by one
if ( 0 < extraOnes ) : NEW_LINE INDENT printRec ( number + "0" , extraOnes - 1 , remainingPlaces - 1 ) NEW_LINE DEDENT def printNums ( n ) : NEW_LINE str = " " NEW_LINE printRec ( str , 0 , n ) NEW_LINE