I have a loop that appends to new list named list1 and it is working, but how can I add something more like print(x) or anything useful to list1.append(...)?
word="abcdefg"
list1=[]
[list1.append(word[i]) for i in range(len(word))]
print(list1)
I've tried using list1.append(word[i]);print("working") and with ,
print(list(word))?