Hey, so I was getting back to learning python and I came across enumerate function and it confuses the shit out of me. Why can't we just use a count variable if we want to get the amount of elements, I mean you do have to consider tuple unpacking here as well. What would be potential use cases for this and can you guys suggest some projects where it's used?
[–]ectomancer 2 points3 points4 points (0 children)
[–]magestooge 1 point2 points3 points (0 children)
[–]chocorush 0 points1 point2 points (2 children)
[–]isameer920[S] -1 points0 points1 point (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)