Empty square X46293


Statement
 

pdf   zip

html

Dessign a function empty_square(n) that given an int value n>2 writes an empty square of dimension n.

The statement asks for a function that writes something, thus in this problem print will be used instead of return.

Sample session
>>> empty_square(3)
***
* *
***
>>> empty_square(5)
*****
*   *
*   *
*   *
*****
Information
Author
InfBesos
Language
English
Translator
Original language
Catalan
Other languages
Catalan Spanish
Official solutions
Python
User solutions
Python