Discussions Events Study Material Jobs
Find the Largest Among Three Numbers Using Python - Uniwaly

Explore Diverse Conversations

Find the Largest Among Three Numbers Using Python

Posted By: UmairMehmood Published On: 13 June 2025 At: 13:14 PM

Input three numbers and find the largest one using if, elif, and else.
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num3 = float(input("Enter third number: "))

if num1 >= num2 and num1 >= num3:
    print("The largest number is:", num1)
elif num2 >= num1 and num2 >= num3:
    print("The largest number is:", num2)
else:
    print("The largest number is:", num3)


Tags:

python find largest number python code
Login to like

Posted By:

Author Profile

UmairMehmood

11 days ago

Join the conversation!

Login to Comment

Discover More Articles

Pension New Method Explained - Which Employees Not Eligible For Pension ?

Describe in the light of Paget’s theory the cognitive and intellectual development of a child at different levels.

Afternoon Teaching Staff Hiring Process

University of Veterinary & Animal Sciences UVAS Swat

Input a list and create a dictionary where keys are elements and values are their frequency using Python

Elucidate the role of public and private sector in elementary education. Discuss the role of government of Pakistan in this context.

Bank Alfalah Management Trainee Program and Summer Internship Program 2025

Find Maximum and Minimum from List using Python

Impact of a Stock Market Surge on Job Creation and Economy

Use a dictionary where keys are student names and values are lists of 3 marks Using Python