• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
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 odpowiedzi
+ 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

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
When your heart are gone
1 Votes
I am a beginner here
3 Votes
Where do I find saved code?
1 Votes
Hello everyone, umm i downloaded this app today , and I am a bit confused about this
0 Votes
In data science, which part is easy to learn and which is hard, and why? Which part is most important to data science?
1 Votes
SVG Animation: Container Problems - Any Suggestions?
0 Votes
Python me variable ka use kya hai
1 Votes
Pls I need help
0 Votes
Coding ?
1 Votes
Why are my QR codes are returning empty?
0 Votes