Python 5.6: Min/max error cases

We will still improve our programs and manage another case of error, if I run my code for example and I put here 30 I type enter, you will see that it passes and we are told that the number, magic is smaller well here we would like to improve the code so that if user enters a value, which is not between the min and the max it returns a message saying that you have to enter a number between the min and the max, so this is ... the objective here to that effect, we're going to do here at the bottom of the except, we're going to do a colon else to say that we check the conversion, if it doesn't pass we enter the except if the except doesn't pass we leave in the else I'm going to enter, I'm going to do an if int answer greater than min number or int answer greater than max number two points print error, we have to enter a number, included between, I'm going to put here percentage s and percentage s comma try again, and outside I'm going to do a percentage parenthesis min number comma max number, it's ok I'm going to run my program, I'm going to put 30, you see that it enters our else but we see that we still have the magic number is smaller, which means that it enters in this condition if in this condition, to remedy this we will make answer int equals zero to force it to re-enter the loop to continue the process so I restart my program, here I'll put 50 and it says error you must enter a number between 1 and 10, so everything works normally and we say to each other very soon for a next video about random numbers.