Rombe clapejat 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

Dissenya una funció motted_rhombus(n) que donat un nombre enter n>2 escrigui un rombe de costat n motejat.

L’enunciat demana que la funció escrigui quelcom, així doncs en aquest problema es farà servir print en lloc de return.

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