(devices)
return ", ".join(device_name(device) for device in devices)
returns the name of a single device, or of a list of devices
returns the name of a single device, or of a list of devices
returns the name of a single device or of a list of devices
def devices_name(devices):
    """returns the name of a single device, or of a list of devices"""
    devices = devices if isinstance(devices, (list, tuple)) else [devices]
    return ", ".join(device_name(device) for device in devices)
def devices_name ( devices ) : devices = devices if isinstance ( devices , ( list , tuple ) ) else [ devices ] return ", " . join ( device_name ( device ) for device in devices )