title: Convert integers to binary, need to remove leading zero
body: <p>I wrote a program to convert an integer to binary without using <code>bin()</code>. However, when executed, this function adds a leading zero.</p>
  
  <pre><code>def decimalToBinary(n):
      def helper(n):
          if n == 0:
              return '0'
          else:
              if n%2 == 1:
                  binaryDigit = '1'
              else:
                  binaryDigit = '0'
              return helper(n//2) + binaryDigit
  
      helper(n)
      print(helper(n))
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>&gt;&gt;&gt; decimalToBinary(100)
  01100100
  </code></pre>
  
  <p>How can I change this so that when <code>100</code> is input, the output is <code>1100100</code>, rather than <code>01100100</code>?</p>