How to make hollow rectangle pattern in python

后端 未结 0 1946
无人及你
无人及你 2020-12-02 23:21

I need to define a function that takes a character (such as *) as input and prints a hollow rectangle pattern using a for-loop:

* * * *
*     *           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题