Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
Hi! Thanks for the .get(letter, 0) tip. I've added it to the post, since I definitely agree that that's the best solution.
As far as the LETTER_SCORES variable goes, that was actually just provided as part of the setup of the problem, so I didn't bother to change that. You'll have to submit a pull request on the original repo :)
Thanks again for reaching out, though. I always love to learn that thing that makes my code that much cleaner!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi! Thanks for the
.get(letter, 0)
tip. I've added it to the post, since I definitely agree that that's the best solution.As far as the LETTER_SCORES variable goes, that was actually just provided as part of the setup of the problem, so I didn't bother to change that. You'll have to submit a pull request on the original repo :)
Thanks again for reaching out, though. I always love to learn that thing that makes my code that much cleaner!