<s> __author__ = "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> def swap_odd_even ( num ) : <EOL> '''<STR_LIT>''' <EOL> mask_odd = <NUM_LIT> <EOL> mask_even = <NUM_LIT> <EOL> odd = num & mask_odd <EOL> odd >>= <NUM_LIT:1> <EOL> even = num & mask_even <EOL> even >>= <NUM_LIT:1> <EOL> return bin ( odd | even ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import doctest <EOL> doctest . testmod ( ) </s>
