Im trying to find the first element in each nested list: x = [['hey','wassup'],['are','you','ok'],['i','am','fine']
So that I get print a string: "hw ayo iaf"
so far I have:
def first_letters(): x = [['hey','wassup'],['are','you','ok'],['i','am','fine']
Thanks!
print(' '.join(''.join(z[0] for z in y) for y in x))