MCPcopy 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
58def check_str(x):
59 assert isinstance(x, str), "object isn't string where string expected"
60 return x
61
62
63def check_dict(x):

Callers 1

test_exerciseFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_exerciseFunction · 0.72