Python: Unpacking an inner nested tuple/list while still getting its index number
Python: Unpacking an inner nested tuple/list while still getting its index number Question: I am familiar with using enumerate(): >>> seq_flat = (‘A’, ‘B’, ‘C’) >>> for num, entry in enumerate(seq_flat): print num, entry 0 A 1 B 2 C I want to be able to do the same for a nested list: >>> seq_nested …