[Python] Making np.rot90 without using the Numpy library [duplicate]

Discussão em 'Python' iniciado por Stack, Maio 6, 2025.

  1. Stack

    Stack Membro Participativo

    I have a 2D list that functions very similarly to a 2D Numpy array. I need to rotate this by 90°, and usually I would just use np.rot90. However, since this is for a class, my teacher won't let us use the Numpy library for some reason. I want to define rot90 within my code so that I can use it without needing Numpy. How might I go about doing this?

    Continue reading...

Compartilhe esta Página