Motted rhombus X16966


Statement
 

pdf   zip

thehtml

Dessign a function motted_rhombus(n) that given an int value n>2 writes a motted rhombus of side n.

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

Sample session
>>> motted_rhombus(4)
   *
  * *
 * * *
* * * *
 * * *
  * *
   *
>>> motted_rhombus(7)
      *
     * *
    * * *
   * * * *
  * * * * *
 * * * * * *
* * * * * * *
 * * * * * *
  * * * * *
   * * * *
    * * *
     * *
      *
Information
Author
InfBesos
Language
English
Translator
Original language
Catalan
Other languages
Catalan Spanish
Official solutions
Python
User solutions
Python