• Cursos
  • Code Compiler
  • Discussão
  • Preços
  • Equipas
Menu
0

List

Is there a function that work like next() but when it reach the end of the list it comes back to the beginning?

pythonlists
4th May 2021, 11:46 AM
Mr.Fish
Mr.Fish - avatar
2 Respostas
+ 2
Is cycle() what you need? https://stackoverflow.com/questions/23416381/circular-list-iterator-in-JUMP_LINK__&&__python__&&__JUMP_LINK
4th May 2021, 12:01 PM
加油 我先下了
加油 我先下了 - avatar
0
CarrieForle Yes! Thank you so much 👍
11th May 2021, 4:08 PM
Mr.Fish
Mr.Fish - avatar

Tens frequentemente perguntas como esta?

Aprende de forma mais eficiente, gratuitamente:

  • Introdução ao Python

    7,1M de estudantes

  • Introdução ao Java

    4,7M de estudantes

  • Introdução ao C

    1,5M alunos

  • Introdução ao HTML

    7,5M alunos

Ver todos os cursos
Popular hoje
How do we code calculator
2 Votes
What programming language should i learn to make applications or games?
0 Votes
How to add comment in python?
2 Votes
I need help
1 Votes
My hearts are disappering :(
0 Votes
How to learn python fast than usual in sololearn?
0 Votes
What can html, css and javascript do
0 Votes
Pressure and tension
2 Votes
How to make a selection on a calculator in Python
0 Votes
Conducción de calor o Q=−kAdTdxQ = -k A \frac{dT}{dx}Q=−kAdxdT o Pared 2 m², espesor 0.1 m, k = 50 W/m°C, ΔT = 30°C → Q ≈ 30,0
0 Votes