my input file content is
12sljg1', 'kf
[]
ffdasfsdfdsf
Process finished with exit code 0
I am reading these lines into a list and print them with code:
lines = [line.splitlines() for line in open(r'C:\Users\BerkayS\Desktop\testfile.txt', 'r')]
print(lines[0:2])
Output is:
[["12sljg1', 'kf"], ['[]']]
Why it is putting quotation mark (") to start and end of the member at first position which is
12sljg1', 'kf
?