get a list of substrings consisting of the first 5 characters of every string in list `buckets`,[s[:5] for s in buckets]