I have a txt file of only a continuous string of characters MNHY...
I want to have the output of ['M','N','H','Y'...]
I have attempted this code below and various forms of it, but I can only convert the txt file as one continuous list.
def text_check(filename):
my_file = open(filename,"r")
print(my_file.read().splitlines())
text_check("demo_text.txt")
How can I convert the .txt file to this ['M','N','H','Y'...] format?