Slide to the Left! Slide to the Right!


#1

What's wrong with the code?. It shows the error "File "python", line 5
SyntaxError: keyword can't be an expression".

0b1100 >> 2 == 0b0011 (12 >> 2 = 3)
0b1 << 2 == 0b0 (2 << 0)
print bin(shift_right)
print bin(shift_left)


#2

@jackchrisp,

shift_right = 0b1100
shift_left = 0b1

# Your code here!
shift_right = shift_right >> 2
shift_left = shift_left << 2
print bin(shift_right)
print bin(shift_left)

=====================================================

http://discuss.codecademy.com/t/3-14-plz-print-code-so-i-can-compare/10465/2?u=leonhard_wettengmx_n
http://discuss.codecademy.com/t/14-14-error/9294/3?u=leonhard_wettengmx_n
http://discuss.codecademy.com/t/python-14-14-glitched-fixed/8723/18?u=leonhard_wettengmx_n


#4