Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jwasham/practice-python
/ set_bit
Function
set_bit
bit_manipulation/bits.py:47–48 ·
view source on GitHub ↗
(x, position)
Source
from the content-addressed store, hash-verified
45
46
47
def
set_bit(x, position):
48
return
x | (1 << position)
49
50
51
def
clear_bit(x, position):
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected