code: def print_table(data):
      
      table = AsciiTable([COLUMNS])
      table.justify_columns[2] = 'right'
      table.justify_columns[3] = 'right'
      table.justify_columns[4] = 'right'
      table_data = list()
      for row_in in data:
          row_out = [
              str(row_in.get('ssid', '')).replace('\0', ''),
              str(row_in.get('security', '')),
              str(row_in.get('channel', '')),
              str(row_in.get('frequency', '')),
              str(row_in.get('signal', '')),
              str(row_in.get('bssid', '')),
          ]
          if row_out[3]:
              row_out[3] += ' MHz'
          if row_out[4]:
              row_out[4] += ' dBm'
          table_data.append(row_out)
  
      sort_by_column = [c.lower() for c in COLUMNS].index(OPTIONS['--key'].lower())
      table_data.sort(key=lambda c: c[sort_by_column], reverse=OPTIONS['--reverse'])
  
      table.table_data.extend(table_data)
      print(table.table)
docs: Print the table of detected SSIDs and their data to screen.
  
      Positional arguments:
      data -- list of dictionaries.