00:01
Okay, so the first thing we're going to do here is import random because we need to initialize a random variable called secret number and then we're going to say secret number equals random dot randint one two.
00:24
So this initializes our secret number to a random integer between one and a hundred.
00:32
So then we're going to get a first input.
00:36
So we should also have a counter.
00:39
So let's also say, let's call it numguess just to be consistent.
00:44
So numguess is equal zero and then let's say curguess is going to be int of input.
01:01
So what this is going to do is actually, so we've initialized numguess to be zero, so the user hasn't guessed anything.
01:07
And then we're going to say our current guess is going to be the first input.
01:12
So we're actually going to increment numguess here because the user has already guessed at this point.
01:19
So we could have also just as easily initialized numguess to one, but this is just to be methodical and keep our bookkeeping properly.
01:30
So now we actually need to check our current guess against the secret number.
01:35
And what we're going to do is say while curguess does not equal our secret number.
01:57
And then, okay, so if this loop's entered and for every iteration of this loop, as long as this, if this boolean condition of the ball loop passes, that means that the user hasn't properly guessed the number.
02:15
So what we can do is actually give the user hints, saying whether the number is too high or too low...