Lab - String formattingΒΆ
Suppose we want to print out a chess or checkerboard using ASCII characters.
Solution:
Let’s try it out:
$ python formatting.py
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
We can also visualize the execution of our program with Python Tutor.