1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] it is necessary to output the "drawing" through nested loops [closed]

Discussão em 'Python' iniciado por Stack, Novembro 23, 2025.

  1. Stack

    Stack Membro Participativo

    write the code through nested loops so that the output is as follows:enter image description here

    Output of various shapes. The user must enter the maximum number n using the keyboard (for example, from 2 to 9). Use for loops to form a shape from the task depending on n.

    we need to output the drawing through 2 nested loops using only print, inside of which we have to play with the parameters of the loops to get the necessary output.

    n = 6

    Continue reading...

Compartilhe esta Página