greatest of three numbers in python

# Python program to find the largest number among the three input numbers
# take three numbers from user
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num3 = float(input("Enter third number: "))

if (num1 > num2) and (num1 > num3):
   largest = num1
elif (num2 > num1) and (num2 > num3):
   largest = num2
else:
   largest = num3

print("The largest number is",largest)

4
9
Lucille2 95 points

                                    Method 1 : Sort the list in ascending order and print the last element in the list.

filter_none
edit
play_arrow

brightness_4
# Python program to find largest 
# number in a list 
  
# list of numbers 
list1 = [10, 20, 4, 45, 99] 
  
# sorting the list 
list1.sort() 
  
# printing the last element 
print("Largest element is:", list1[-1]) 
Output:

Largest element is: 99

4 (9 Votes)
0
0
0
BB ON 80 points

                                    a=int(input())
b=int(input())
c=int(input())
#((a>b)?(a>c?a:c):(b>c?b:c))
if(a>b):
    if(a>c):
        print("a")
    else:
        print("c")
else:
    if(b>c):
        print("b")
    else:
        print("c")

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
diffrent ways of finding greatest among three numbers in python write a program to find the largest and smallest among three entered numbers in python greatest of two numbers in python print greatest number in python program to find greatest of three numbers in python find the greatest of the three number in python greatest integer function in python find largest of three numbers in python Demonstrate a Python program to find the largest among three Numbers Demonstrate a Python program to find the largest among three numbers. GREATEST of two number is python find greatest of four numbers in python find three largest numbers python the largest of three numbers python simple python code to find greatest of three numbers find largest of 3 digit numbers in python how to find greatest of 4 numbers in python python largest of three numbers Develop a Python program to find the largest among three numbers. python program to find greatest among three numbers python program to find largest of 2 numbers write a program to print the largest of three numbers in python python greatest integer biggest of three numbers in python greatest of 3 numbers python python program to check greatest of three numbers write a program to find largest of three numbers in python python largest of 3 numbers python code to find greatest of 3 numbers python program to find largest of 5 numbers a python program that returns the largest value among two numbers python find three largest numbers python find three largest number how to find greatest of three numbers in python greatest multiple of a number python next greatest number in python python program for greatest of three numbers python program for greatest of two numbers find largest of 3 numbers in python find the greatest number python function to find greatest digit of number in python write a program to find largest of two numbers in python python program for largest of three numbers write a program to checkthe largest number among 3 number in python greatest number program in python how to find the biggest of 3 numbers in python greatest of four numbers in python Python program to find largest of three numbers using if find greatest of two numbers in python finding largest of 3 number in python greatest python int Python function to Find the Largest Among Three Numbers Python Program to Find the Largest Among Three Numbers python greatest number largest of 3 numbers python largest no in python largest number from a given number python list great of three numbers in a list greatest amontg python find max of numbers in python how to find the second largest number in an array python python find greatest value in list Write a program to find the max of three numbers. python largest number program in python take three numbers as input and find largest in python how to write program in python to get the largest nuber How to find the largest and smallest number in 10 inputs python Write a python program to find the largest among three inputted numbers. how to find the middle of three numbers in python python get latest 3 numbers of a large integer largest of three numbers in python write program for enter three numbers from user and find greater using elif? largest number in python python greatest of 3 numbers using elif write a program to check the largest number among the three numbers in python largest of 3 numbers in python largest of 3 numbers in python using function whick number is bigest in a and b python greatest of 3 numbers in python largest forma numbers in python find the largest number in an 3 given num Print the Second Largest number from the Python List. how to make a program find biggest of three numbers in python input two numbers and display the largest/smallest number. Program to Find the Largest Number in a List in python Find and Print the Second Largest number from the Python List python how to find the largest number in a list python python program to find maximum of 3 numbers python program to print the greatest of three numbers in single line python program to print the greatest of three numbers max_of_three funciton in python find maximum number from 3 nos in python greatest of three numbers in python in one line biggest number in python write a python program to find the greatest of 3 numbers python greatest of 3 numbers how to input three numbers in python python Write a program that will ask the user to input three integer values from the keyboard. Then it will print the smallest and largest of those numbers. Note : Write the functions detSmall and detLarge. maximum of three numbers in python largest numberc in python python get highest of three numbers max of three numbers in python Pmax of three nums in python python program to find largest of three numbers python program to find maximum between three numbers. return largest three numbers of list greatest number in a list python biggest value of 3 in python find the largest number out of 3 in python python sum of largest three python code to find largest of 3 numbers python program to find largest of 3 numbers using nested if find big numbers from three python algorithm how to find the greatest divisor of a number in python python code to find the largest of three numbers how to check greatest number python find the greatest of three numbers in python python the bigger of 3 numbers max of 3 number python greatest among three numbers in python 1. Accept 3 numbers from the user and display the largest value. IN PYHTON python program to find greatest of three numbers Write a program that accepts sets of three numbers, and prints the second-maximum number among the three. in python how to find the largest of the three numbers in python how to see which number is bigger between 3 numbers python python greatest of three numbers python Write a program to find maximum out of three numbers using function. code to check largest number out of 3 in python code to find greatest of three numbers in python Write a program that takes three numbers as input from the user, and prints the largest. python code for largest of three numbers maximum of three numbers using nested if in python write a program to find largest amoung three number in python program with three inputs python python program with three number python code to find out maximum out of 3 numbers program to find the greatest of three numbers in python write python program to find out largest of 3 numbers python greater of three numbers python program to find the largest of three numbers python program to find largest of 3 numbers what ar ethe codes for print the maximum number in python greatest of 3 integers in python python program to compare three numbers nested if gretestnumber python how to get highest of three inputs in python python largest of 3 numbers simple if three numbers from lowest to highest in python\ max of three numbers python find the largest of three numbers in python input user find the largest of three numbers in python greatest of three numbers in python using nested if greatest of three numbers in python how to find greatest number in python find greatest number in python wap in python greatest among three number Find the largest of three numbers, Factorial of a number python input three numbers in python find greatest of three numbers in python Write a Python program to find maximum between three numbers. python program for greatest among three numbers find greater number in python greater number in python biggest of 3 numbers in python python script to check larest of three numbers greater then 3 number in python program to find the largest of three numbers in python elif ladder largest among 3nos in python program to find the largest of three numbers in python
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source