write a Python program to display which number is lowest between two numbers
Answers
Answered by
0
Answer: 1, 2, 3
Largest (1+2+3)
Explanation:
Answered by
0
Below are the python program for the above question :
Output :
If the user will enter as 3 and 4, then the output will be 3.
If the user will enter as 4 and 5, then the output will be 4.
Explanation:
Number1=int(input("Enter the first number: "))#Take the first number.
Number2=int(input("Enter the Second number: "))#take the second number.
if(Number1<Number2):#Compare the number.
print("The lowest number is:",Number1)#print the lowest number.
else:
print("The lowest number is",Number2)#it also prints the lowest number.
Code Explanation :
- The above code is in python which takes the two number from the user after instructing the user for the input and store it into two variable.
- Then the two number is compared in the if-else statement and print the lowest number.
Learn More :
- Python : https://brainly.in/question/14689905
Similar questions