I write a little more clearly. Here, I want each line to stick together twice. normally from
a = "Hello"
b = "World"
print(a + b)
out >
"Hello world"
It can be used, but the problem I found is as follows: My intention is to paste each line into its own repetition without the extra line.
with open('domains.txt','r') as f:
for line in f:
test_var = line+line
print(test_var)
out:
"string
string
string2
string2
string3
string3"
so I want this output (without new line between that):
"string string
string2 string2
string3 string3"