Find tuples with same starting and ending alphabets

Solution 1:

try this:

lst = [('hello','hi'), ('his', 'name', 'archith'), ('kremlin', 'russia', 'spartak'), ('error', 'none', 'wave'), ('indeed', 'numbers', 'work')] 


for e,i in enumerate(lst):
    if i[0][0] == i[-1][-1]:
        print(e,"=>",i)