1from secret import clue
2
3def lucky():
4 left_three_bits = clue(right_shift=5)
5 right_three_bits = clue(left_shift=5)
6 middle_left_bit = clue(bw_and=int(0b00010000))
7 middle_right_bit = clue(bw_or=int(0b11110111)) & 0b00001000
8
9 return (left_three_bits << 5) | middle_left_bit | middle_right_bit | (right_three_bits >> 5)
.
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK