 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can check three numbers for maximum in Python. Before starting, you can note my information. You can connect with me by following these details. You can subscribe my YouTube channel by clicking on the link which is available at the bottom right corner of this video. You can download my app Techimage that is available on Google Play. Now coming on to the topic, for comparison of three numbers, I have to declare three variables and I am going to read those values from user. So for that purpose, I am using input function and message is enter first number. For second number, again I am using input function for third input. This way I have implemented three input functions which will receive three numbers and those values will be assigned into N1, N2 and N3. As Python reads all the inputs in string format, so that's why I have to convert those input into integers like this. Same for N2 and same for N3. Here I have converted all three variables values into integers. Now for comparison, I am using and operator, sorry, if N1 is greater than N2 and N1 is greater than N3 then print statement will display number one is maximum. If it is false then N2 greater than N1, N2 greater than N3. It is checked. If this condition is true then number two is maximum. If both the conditions are false then we can implement else and masses will be number three is maximum. Friends, with this first if condition I have compared values of N1 with N2 and N1 with N3 and I have used and operator. If both the conditions are true then this if statement will be considered true and print statement will print number is maximum. If first if condition is false then control will be transferred to elif where N2 is compared with N1 and N2 is compared with N3. If this condition is true then number two is maximum will be displayed. If both if and elif are false then else will print number three is maximum. This way I have compared three variables for maximum. I have saved this code in D drive inside the practice folder inside practice folder test script dot py. Now I am opening command prompt. First I am moving to D drive then in practice folder. Now I am executing this python script with python space test script dot py and I am pressing enter key. It is asking for first number I have entered one for second number two for third number three. You can see the output number three is maximum. I am again executing it this time I am entering three as first number two as second number and one as third number. You can see the output number one is maximum. Friends this way I have compared input of three values with if elif and else statement. I hope you have understood how we can compare values of three variables using these statements. You can implement this code at your own. If you want to watch more programming related videos you can follow my youtube channel sanjagopta underscore tag school. You can download my app tag MS that is available on google play. Keep connected with me if you want to learn programming. Thank you for watching this video.