I know that there is another answer to this but that's for complex users. I'm a basic python user who started a couple of days ago. So I need a simple answer
Im trying to understand this line of code. Mostly the enumerate part. Could someone please what enumerate does.
f = open("solutions.txt", "r")
searchlines = f.readlines()
for i, line in enumerate(searchlines):
Thanks in Advance
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…