Motted rhombus X16966


Warning: Deprecated problem

This problem is marked as deprecated.

Although this problem remains in the system because of historic reasons, it may have some issues and should not be used anymore.

Deprecation indication: Aquest problema mai funciona.

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