Motted rhombus X16966


Warning: This problem has some issue.

The system has detected that this problem may have some issue, as a mistake in its statement or a wrong solution. It should be soon be repaired by its problem setter.

Solution status: Python . (red languages have some issue).

It is not recommended to try to solve this problem until this warning disapears.

Statement
 

pdf   zip

html

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