All pastes #746193 Raw Edit

Untitled

public python v1 · immutable
·published 2007-10-23 01:01 UTC
rendered paste body
def mostCommonSep(s):    seps = [',', ';', '\n', '.']    sepcounts = [s.count(possibleSep) for possibleSep in seps]    maxsep = max(sepcounts)    maxindex = sepcounts.index(maxsep)    finalsep = seps[maxindex]    return finalsep