I am solving the character pattern act 1 problem in python 3.I am getting the output like sample output but the pattern is not matching with that of the problem 's pattern.
Please check my code below.
> n = int(input()) > for i in range(n): > s,t = input().split() > s,t = int(s),int(t) > for i in range(s): > for j in range(t): > if (i+j) % 2 == 0: > > print("*",end="") > else: > print(".",end="") > print("\n")
created
last reply
- 5
replies
- 1.7k
views
- 3
users
- 5
links