Rotate the bits of an integer to the left by a given number of positions.
Constraints
Example
['>>> rotate_left(0b00001111, 4)\n240', '>>> rotate_left(0b10000001, 1)\n3', '>>> rotate_left(0b10101010, 2)\n170', '>>> rotate_left(255, 3)\n255']
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints