Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/datacamp/pythonwhat
/ check_str
Function
check_str
pythonwhat/utils.py:58–60 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
56
57
58
def
check_str(x):
59
assert isinstance(x, str),
"object isn't string where string expected"
60
return
x
61
62
63
def
check_dict(x):
Callers
1
test_exercise
Function · 0.90
Calls
no outgoing calls
Tested by
1
test_exercise
Function · 0.72