the-vampiire / hacktoberithms

Python & JavaScript solutions only! algorithms to practice javascript, python, git and contribute to an open source repo for hacktoberfest!
MIT License
13 stars 70 forks source link

Solution for issue #36 #148

Closed ljsauer closed 5 years ago

ljsauer commented 5 years ago

I had trouble finding ways to write this more simply, but in the end it all seems to work as required. Just call the function and enter input to try it out. Thanks!