 
      
      list_ports()Get the list of all available serial ports
list_ports()There are no parameters.
serial_port[] — Returns array of serial_port object that contains port address, description, and hardware ID
import serial
 
ports = list_ports()
writer(ports)