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] python: restarting a loop

Discussão em 'Python' iniciado por Stack, Março 10, 2025.

  1. Stack

    Stack Membro Participativo

    i have:

    for i in range(2,n):
    if(something):
    do something
    else:
    do something else
    i = 2 **restart the loop


    But that doesn't seem to work. Is there a way to restart that loop?

    Thanks

    Continue reading...

Compartilhe esta Página