Python 3.10 : Exercise : Conditions
We are going to continue with our program and here we made an exercise, the exercise consists in displaying on the screen you are senior when the age will be superior to 60 years and you are children when the age will be lower than 10. Well I let you do the exercise and do not forget that the order of passage is important. You must first put these two lines before putting the 60, and for the 10 it doesn't matter where you put it will absolutely take, well we'll come back in a few minutes to correct the exercise. Now about the exercise, I'm going to leave this and go to this level, and I'm going to do elif the age is less than 60 two points print you're senior I copy this and we post here, concerning the one of 10 years old I can put here elif age inferior to 10 print you are child not to repeat ourselves at each moment we are going to comment this function here and below name 1 I copy name 2 and here tita I raise my code titi what is your age? I am going to put 6 tita what is your age and here I am going to put 65 you see that the code Normally, if I rerun titi what is your age? I will put 17 and here I will put 45 you call yourself at 17 we say almost major and at 45 you are major so everything works normally and we say to each other very soon for a video on the conditions, concerning the and/or.