aliquote.org

March 12, 2019

TIL Better to use partition rather than split when you want to convert a ‘string’ to a ‘dict’ based on the first occurence of a specific delimiter (as in .split(..., 1)). Note that unlike split, the delimiter is kept and you probably don’t want to keep it. #python