Ad
  • Default User Avatar

    Dang. Looking at the top solutions I realize now I could have just done all of this in list comprehension. Oh well, more practice with lambdas I guess :P

  • Default User Avatar

    That's so slick! I was planning on using list comprehension myself but I couldn't figure out how to get past the empty strings left over from .split(). I'll definitely need to use this trick in the future. :) Great job!