string1 = [‘Hello’,’Bye’]
‘ey’
Here is the code for that:
from functools import * string1 = ['Hello','Bye'] print (reduce(lambda a,b : a+b,(i[1] for i in string1)))
Output:
ey