What is the most Pythonic way to print the first element of each of the lists?
For example, I want ['apple', 'banana']
from the list of lists below:
data = [['apple','airplane'],['banana','boat']]
This is my best attempt:
fruit = [list(fruit) for fruit in data]
[letter[0] for letter in fruit]
However, having two list comprehensions doesn't seems very pythonic