Rombo moteado 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

Diseña una función motted_rhombus(n) que reciba un número entero n>2 y escriba un rombo de lado n moteado.

El enunciado pide una función que escriba algo, así que en en este problema se usará print en vez de return.

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