Slide to the Left! Slide to the Right!


#1



https://www.codecademy.com/courses/python-intermediate-en-KE1UJ/1/1?curriculum_id=4f89dab3d788890003000096


please i need help on this exercise this is my code it keeps showing me this Oops, try again.
Did you set shift_right = shift_right >> 2 ?

0b1100 >> 2 == 0b11
0b1 << 2 == 0b100


Replace this line with your code.


#2

What is the setup? Something like,

shift_right = 0b1100
shift_left = 0b100

?

By this stage in the track this should not be a problem given the starting code. The answer is in the error message.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.