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

Class OldResistor

example_code/item_058.py:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50print("Example 1")
51class OldResistor:
52 def __init__(self, ohms):
53 self._ohms = ohms
54
55 def get_ohms(self):
56 return self._ohms
57
58 def set_ohms(self, ohms):
59 self._ohms = ohms
60
61
62print("Example 2")

Callers 1

item_058.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected