So I just dont know how to interpret what I wanted to do, but I will state otherwise. I have a input.txt which holds these list of words separated by 1 blank line:
your
name
is
kimi
no
nawa
Now i wanted them to be stored in a lists or string with similar results like:
list = ['your','name','is','kim','no','nawa']
or
string = 'yournameiskiminonawa
or
list1 = ['your','name','is']
list2 = ['kim','no','nawa']
string = 'kiminonawa'
string1 = 'yournameis'
and below is my startup code:
values = []
for line in open('input.txt'):
line = line.split()
for value in line:
values.append(value)
print line