how do i read text file into string variable
I use the following code segment to read a file in python

    with open ("data.txt", "r") as myfile:
    data=myfile.readlines()

input file is

    LLKKKKKKKKMMMMMMMMNNNNNNNNNNNNN
    GGGGGGGGGHHHHHHHHHHHHHHHHHHHHEEEEEEEE

and when i print data i get

    ['LLKKKKKKKKMMMMMMMMNNNNNNNNNNNNN\n', 'GGGGGGGGGHHHHHHHHHHHHHHHHHHHHEEEEEEEE']

As i see data is in list form. How do i make it string. And also how do i remove \n, [, and ] characters from it ?
how do i read text file into string variable
===

I use the following code segment to read a file in python

    with open ("data.txt", "r") as myfile:
    data=myfile.readlines()

input file is

    LLKKKKKKKKMMMMMMMMNNNNNNNNNNNNN
    GGGGGGGGGHHHHHHHHHHHHHHHHHHHHEEEEEEEE

and when i print data i get

    ['LLKKKKKKKKMMMMMMMMNNNNNNNNNNNNN\n', 'GGGGGGGGGHHHHHHHHHHHHHHHHHHHHEEEEEEEE']

As i see data is in list form. How do i make it string. And also how do i remove \n, [, and ] characters from it ?