h = '*.'
g = h*98 + '*'
t=int(raw_input())
if t>=1 and t<100:
l,c = raw_input().split()
l = int(l)
c = int(c)
if 1<=l<100 and 1<=c<100:
for i in range(l):
print g[0:c]
Is your code meant to look like this? Indentation is important for python programs! If yes, you still need to build a loop over the t
test cases and some logic to print alternating lines.