title: unsupported operand type(s) for <<: 'float' and 'int'
body: <p>How to make this code, that runs perfectly under Python 2, run on Python3 ?</p>
  <pre><code>def int_2_bcd(value):
      return ((value / 10) &lt;&lt; 4) + (value % 10)
  
  print(int_2_bcd(255))
  </code></pre>
  <p>If I run the code above using a Python 3 interpreter (e.g. <a href="https://www.online-python.com/" rel="nofollow noreferrer">https://www.online-python.com/</a>), I got this error at the print line :</p>
  <blockquote>
  <p>TypeError: unsupported operand type(s) for &lt;&lt;: 'float' and 'int'</p>
  </blockquote>
  <p>I tried casting the variables to int but it didn't fix the issue.</p>