Solve problem "Chess board" online - Learn Python 3 - Snakify

Problem «Chess board» (Medium)


Statement

Given two numbers \( n \) and \( m \). Create a two-dimensional array of size \( \left ( n \times m \right ) \) and populate it with the characters "." and "*" in a checkerboard pattern. The top left corner should have the character "." .

In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
3 4
. * . *
* . * .
. * . *
6 8
. * . * . * . *
* . * . * . * .
. * . * . * . *
* . * . * . * .
. * . * . * . *
* . * . * . * .
8 3
. * .
* . *
. * .
* . *
. * .
* . *
. * .
* . *
7 5
. * . * .
* . * . *
. * . * .
* . * . *
. * . * .
* . * . *
. * . * .
1 6
. * . * . *
8 1
.
*
.
*
.
*
.
*
1 1
.