heart Posts from the community...
Story
@sotiris shared a post, 2 years, 2 months ago

Lamda functions in a nutshell

Lambda functions benefitsOne of the main benefits of Lambda functions is that they’re small and simple. They don’t have a lot of overhead, so you can write them quickly and easily. They also have a more limited scope than normal functions; this means that your code only runs as long as needed, which..

Story
@sotiris shared a post, 2 years, 2 months ago

Python comprehensions In a nutshell

IntroductionIf you’re a Python programmer, then you know how powerful and flexible the list comprehension syntax is. It allows us to create lists, dictionaries and sets in one line of code. Here’s an example:>>> [x**2 for x in list]This raises every element of the list to the power of 2List..