Aug-16-2018, 02:02 PM
@perfringo: I really like your use of enumeration.
First you open the text file as a variable. Then for the two iterators inside the each line of the text file which you’ve declared, the first iterator,
A few days ago I was having difficulty grasping the concept of enumeration. There is a question on SO titled, “What does enumerate mean?” which has quite a number of answers explaining enumeration in general. It all went over my head when I was reading it a few days ago. But your use of enumeration is clear and easily understood in the context of printing line 5 in my text file. Thank you for the clarification, @perfringo.
First you open the text file as a variable. Then for the two iterators inside the each line of the text file which you’ve declared, the first iterator,
i
, corresponds to each line. When i
reaches line number 4, you print the other iterator, v
. Then the operation is terminated. A few days ago I was having difficulty grasping the concept of enumeration. There is a question on SO titled, “What does enumerate mean?” which has quite a number of answers explaining enumeration in general. It all went over my head when I was reading it a few days ago. But your use of enumeration is clear and easily understood in the context of printing line 5 in my text file. Thank you for the clarification, @perfringo.