I'm trying to turn a file into a list in Python that takes as elements each letters. The file 'file_input.txt' should look like this:
It is great
and the function should return: ['i','t','i','s','g','r','e','a','t']
I tried to do this:
file1 = open('file_input.txt', "r")
list_of_lists = []
for l in a_file1:
s_line = l.strip()
l_list = s_line.split()
list_of_lists = l_list
file1.close()
But it didn't work, also it should be case insensitive, can anyone help me please?