Python 5.3 : Exercise : condition
We are going to continue our learning and here we are going to make an exercise containing the conditions, we are going to compare the number to the... magic number, to display this 3 different cases on the screen i.e. magic number and bigger the magic number and ... smaller and bravo you have won if user finds the exact magic number, for the moment the user has only one ... one chance to find the magic number and we'll meet in a few minutes for the correction and I'll let you do the exercise. I want to start by comparing the number to the magic number by making an if number equal to the magic number, two points print I copy this bravo you have won after I will make the second condition, elif if magic number number greater than magic number two points print the number is smaller else print the magic number is larger like this, I launch my code the number, I will put five bravo, I raise I will put three the magic number and larger I want to put seven magic number is small so everything works normally and we say to each other very soon for a next video about ... the exercises on the loops.