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

Function run_modulating

example_code/item_046.py:118–122  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

116
117print("Example 6")
118def run_modulating(it):
119 amplitudes = [None, 7, 7, 7, 2, 2, 2, 2, 10, 10, 10, 10, 10]
120 for amplitude in amplitudes:
121 output = it.send(amplitude)
122 transmit(output)
123
124run_modulating(wave_modulating(12))
125

Callers 1

item_046.pyFile · 0.85

Calls 2

transmitFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected