Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jwasham/practice-python
/ is_bit_set
Function
is_bit_set
bit_manipulation/bits.py:30–31 ·
view source on GitHub ↗
(x, pos)
Source
from the content-addressed store, hash-verified
28
29
30
def
is_bit_set(x, pos):
31
return
(x & (1 << pos)) != 0
32
33
34
def
is_even(x):
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected