In the example below, you can see I've got a list of dummy questions, and a list of dummy answers from the user. The user can type anything at the prompt, and then an answer. If they type q, the program ends and the original puzzle and answers are shown.

Your design does not have to look exactly like this. You may have chosen a different way to store your questions and answers. And you might have a different way to handle input from the user.


$ python3 design-3square.py 
['q1', 'q2', 'q3']
['   ', '   ', '   ']
> 1
1: qqq
['q1', 'q2', 'q3']
['qqq', '   ', '   ']
> 2
2: www
['q1', 'q2', 'q3']
['www', '   ', '   ']
> 4
4: ttt
['q1', 'q2', 'q3']
['ttt', '   ', '   ']
> 6
6: hello
['q1', 'q2', 'q3']
['hello', '   ', '   ']
> q
['q1', 'q2', 'q3']
['xxx', 'yyy', 'zzz']