 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can compare two numbers to find out which one is maximum 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 icon which is available on my videos. You can download my app Techimage that is available on Google Play. Now coming on to the topic. Here I will be demonstrating how you can compare two numbers. For that purpose, I am declaring two variables. First variable is n1. Then input function, it will ask value for first number. Then for reading second number, I am using again input function. It will ask second number from user. So input function is responsible for displaying a message for user and it can read the entered value and that values will be stored inside the variable. Here I have used two variables n1 and n2. n1 will receive first number and n2 will receive second number. Now you have to focus that the entered value in python will be received as string input. Now I have to convert the input into integer. For that purpose I have used this statement which is written at line number three. Here I have converted n1 into integer and the result is again stored inside n1. Same for n2. n2 equals to int of n2. Now both the values are converted into integers. Now I can use if statement for comparison. This is first message. If this condition is true, n1 is greater than n2, then print function will display first number is greater than second. Otherwise else it will display second number is greater than first. Friends this way you can implement if else statements to compare two numbers which are entered by the user. This is the complete python script which is comparing values of two variables. Now I am saving this file. This is saved inside test script.py which is saved in d drive. Inside d drive I have folder practice and in practice folder this script is saved with test script.py. Py is the extension of python file. Now I have to open command prompt. Here I am shifting into d drive. Then in practice folder which is available in d drive. Now I am typing python test script.py and I am pressing enter key. It is asking for two numbers. I am entering first number 10 and second number 20. You can see the output. It is showing second number is greater than first. I am again executing this script. This time I am entering 20 as first number and 10 as second number. You can see the output. This time it is showing first number is greater than second. Friends this way you can compare input of two values which are available inside two variables with the help of if else statement. This is the simple demonstration for comparison of two numbers. You can implement this python script in your system so that you can understand how you can compare two numbers using if else. If you want to watch more programming related videos you can subscribe my youtube channel by clicking on the link which is available on the video. You can download my app Takimace that is available on google play. You can connect with me by following these details. Thank you for watching this video.