Is there an alternative (even if longer) method of writing the yield part of this code? I'm not very familiar with the function and would rather keep it simple.
for i in range(0, len(lstInput) - intCount + 1):
if intCount == 1:
yield [lstInput[i]]
else:
current = lstInput[i]
remainder = lstInput[i+1:]
for rest in yieldLotto(remainder, intCount - 1):
yield [current] + rest
yielddoes?yieldis not complex. Just take the 20 minutes to learn it completely and you'll never worry about it again. @jwodder's SO link is perfect and even has some links to slideshows if I remember correctly. (It's how I learned yield).