Wondering if there is a shorter version of the following in Python 3:
a = [(1,2), (2,3), (1,4)]
for e in a:
n1, n2 = e
...
Access to all three variables e, n1, n2
within the for-loop is required.
Thought of something like the following, but it isn't working.
for n1,n2=e in a:
...
The question has more of an academic character. I know it is not of a great importance.