I've been writing a program to pick random words from my list. However, to do that I had to imitate some solutions on the internet, and I succeeded. Unfortunately, there is something that I can't understand in my work.
def repeat(pic_word, n):
for i in range(n):
pic_word()
My question is what is the meaning of i in "for i in range"?
i
isn't used, and is somewhat meaningless - it's therefore conventional to usefor _ in range(...):
to indicate this. – jonrsharpe Nov 12 '15 at 15:20