Daha iyi seçenek yerleşik işlevi kullanmaktır enumerate()Python 2 ve 3'te de kullanılabilir
The better option is to use the built-in function enumerate(), available in both Python 2 and 3
Bu kod Python 2.x için yazılmıştır ve Python 3.x üzerinde çalışmayacaktır.
Code written for python 2.x will not run on python 3.x.
2008'de yayınlana Python 3.0, dilin önceki versiyonuyla tam uyumlu değildir ve Python 2.x'te yazılan kodların Python 3.x'te çalışması için değiştirilmesi gerekmektedir.
Python 3.0, released 2008, was a major revision of the language that is not completely backward-compatible, and much Python 2 code does not run unmodified on Python 3.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.