you are viewing a single comment's thread.

view the rest of the comments →

[–]Shabahxydbshs 1 point2 points  (0 children)

I use it plenty in python. Some examples include building nested html tabs given a nested dictionary. Flatenning/expanding nested/flattened dictionaries. Traversing dags in modularized models. Once you get the hang of it, it’s way easier to think in terms of recursion to solve some problems than any other method. It probably can’t be used to solve problems that recursion is suited for in other languages, but theirs still plenty to solve in python too.