Skip to main content

Timeline for answer to How can I access the index value in a 'for' loop? by Ankur Kothari

Current License: CC BY-SA 4.0

Post Revisions

7 events
when toggle format what by license comment
S May 26, 2020 at 1:51 history suggested so2 CC BY-SA 4.0
Fixed a bug in the example that uses length of list to iterate. List indices should range from 0 to `length-1`, not 1 to `length` but in print statement the printed index can be made to start from 1. In the previous edit I submitted, I had failed to address the need for output index to start at 1
May 25, 2020 at 14:50 review Suggested edits
S May 26, 2020 at 1:51
May 21, 2020 at 15:17 review Suggested edits
May 21, 2020 at 21:41
May 22, 2019 at 14:58 history edited Georgy CC BY-SA 4.0
code highlighting; spaces according to PEP 8
Feb 12, 2019 at 22:32 history edited Ankur Kothari CC BY-SA 4.0
deleted 5 characters in body
Jun 4, 2018 at 2:26 review Late answers
Jun 4, 2018 at 2:32
Jun 4, 2018 at 2:10 history answered Ankur Kothari CC BY-SA 4.0