Last week I did my first steps with Python) and I was really suprised about this programming language that has such a long history.
what I mostly do when learning a new programming language. This time I choosen the StringCalculator kata from Roy Osherove. You can find the source code on my github page.
One of the nice features I found was list comprehensions feature.
Another nice feature was the built-in any function. It does the same like the same linq function from C#. It returns true when any element of the iterable returns true.
The same is for the filter function. It takes a function as first parameter that returns a boolean and returns all elements from the given list whith those elements for which the function returns true.
At least I used a feature that ES6 also provides, the Destructuring assignment. So in the Kata I used a regular expression to split the definition of delimiter from the list of numbers.
Copyrights © 2018 Jan Baer. All Rights Reserved.
I’m a passionated Softwaredeveloper from Munich.