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