Ad
  • Custom User Avatar

    That was the kind of solution I was looking for. I knew there would be "itertoolsless" solution using recursion but I couldnt solve it myself. Thanks! As a beginner getting mindblown by recursion this was really helpfull for me