Passing a non-iterable to list.extend ()
- by JS
Hello,
I am creating a public method to allow callers to write values to a device, call it write_vals() for example.
Since these values will by typed live, I would like to simplify the user's life by allowing them type in either a list or a single value, depending on how many values they need to write. For example:
write_to_device([1,2,3])
or…