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.