Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13981

Is there a way to go through a list in python recursively and without slicing? [closed]

$
0
0

I need to analyze a list in python. every object of the list can be an int or a list, and I need to check if all of them are equal(int, sum of lists). I don't understand how to do it without using slicing to the list. thanks!!

If I could use slicing, I jumped every time one object forward till the end of the list or till stop criteria.


Viewing all articles
Browse latest Browse all 13981

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>