2011-10-22, 09:11 PM
Heidi Wrote:So does it mention about what functions, parameters, return values, etc are?
Considering the pages being "very long", I'd assume yes. Who could write pages on introduction to programming without those concepts?
Anyway, this is how you do it:
Instead of explicitly declaring the values like Fiel did
here
Code:
while len(randomNumbers) < 6:Code:
randomNumber = random.randint(1, 49)Code:
while len(randomNumbers) < totalLotteryLength:Code:
randomNumber = random.randint(1, UpperRandomNumberLimit)Where do you get these numbers? From the user, as instructed. So ask the user for the inputs and store their answers into the variables.

