human
How to index nested lists in Python?
assistant
Here is some code to get first element of each tuple in list `A`

[tup[0] for tup in A]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.