I am new in learning coding and started with python. I trying to define a function which will iterate over each item in the list and return the item. However, the code is only returning the first item.
ex_lst = ['hi', 'how are you', 'bye', 'apple', 'zebra', 'dance']
def second_char(y): for char in y: return char ky= second_char(ex_lst) print(ky)
Highly appreciate your input. Thanks.