Utilizarea notației Python list comprehensions https://ro.from-locals.com/python-list-comprehension/