human
Python list of tuples to list of int
assistant
Here is some code to flatten list `x`

x = [i[0] for i in x]

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