Python

Python – Find the biggest of 2 given numbers

A simple python example to find the biggest of 2 given numbers.

Biggest of 2 given numbers:

number1 = input("Enter First Number: ")
number2 = input("Enter Second Number: ")
if number1 > number2:
    print("The Biggest number is: ",number1)
else:
    print("The Biggest number is: ",number2)

Output:

Enter First Number: 20
Enter Second Number: 40
The Biggest number is:  40

Happy Learning :)

Found a mistake or something out of date? Tell us →

Written by

chandrashekhar

Founder of onlinetutorialspoint.com. Enterprise architect with 15+ years in healthcare technology, designing and running systems on AWS and Azure. Writes about building real things with AI, local AI hardware and cloud certifications.

Keep reading

Ask a question or leave a comment