Skip to content

Instantly share code, notes, and snippets.

View matburnham's full-sized avatar

Mat Burnham matburnham

View GitHub Profile
@matburnham
matburnham / callsigns.py
Last active April 15, 2023 10:11 — forked from kwirk/callsigns.py
callsigns.py
import csv
import string
import itertools
import re
def count_morse(callsign):
# Create a regular expression pattern that matches dots and dashes
morse_pattern = re.compile('[.-]+')
# Remove any non-alphabetic and non-Morse characters from the callsign