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