I am writing a python program which no. of string user wants to enter as integer and then takes N number of strings from user and then separates strings based on their index and print even strings and odd string separated by space.
For Example:
Inputs from user: 
and output:

and had written this code in pycharm IDE:
tc=input("Enter the no. of test cases you want: ")
for j in range((int(tc))):
n=list(map(int,input("Enter a string: ").split()))
continue
print(1)
for i in range(len(n)):
if i%2==0:
print(n[i],end="")
print(end=" ")
for i in range(len(n)):
if i%2!=0:
print(n[i],end="")
but the problem I am facing is that when I input first string(hacker) and then it will ask for second input and when I input second string(sand) and press enter then it gives output of second string only(sn ad), however I want output as shown in the image above.