#try to avoid input function a = ["hello","world","happy","learning","python"] b = [] for i in a: b.append(i[0]) print(b)
Click the run button. Try to avoid input() function.