A = [[(i + 1 + j) % 2 for i in range(m)] for j in range(n)]
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
A = [[(i + 1 + j) % 2 for i in range(m)] for j in range(n)]