def __contains__(self,
item):
return str(item) in str(self)
out of
sheer laziness, but I think I would’ve automatically failed for calling on a
function that uses recursion even if I personally did not use it at all. I
ended up doing something else which should work, although it has yet to undergo
pre-marking. Once I get it pre-marked, though, I’ll resubmit with “return str(item) in str(self)”; I'm just really curious about whether or not it would be successful at all.
No comments:
Post a Comment