MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / receive_report

Method receive_report

example_code/item_076.py:351–356  ·  view source on GitHub ↗
(self, decision)

Source from the content-addressed store, hash-verified

349
350 print("Example 21")
351 def receive_report(self, decision):
352 last = self.guesses[-1]
353 if decision == CORRECT:
354 self.secret = last
355
356 print(f"Server: {last} is {decision}")
357
358 def clear_state(self):
359 self.lower = None

Callers 1

loopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected