- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Python program maximum of three.

Given three number a b and c, our task is that we have to find the maximum element in among in given number.

## Example

Input: a = 2, b = 4, c = 3 Output: 4

## Algorithm

Step 1: input three user input number. Step2: Add three numbers to list. Step 3: Using max() function to find the greatest number max(lst). Step 4: And finally we will print maximum number.

## Example Code

def maximum(a, b, c): list = [a, b, c] return max(list) # Driven code x = int(input("Enter First number")) y = int(input("Enter Second number")) z = int(input("Enter Third number")) print("Maximum Number is ::>",maximum(x, y, z))

## Output

Enter First number 56 Enter Second number 90 Enter Third number 67 Maximum Number Is ::> 90

- Related Questions & Answers
- Python program to find the maximum of three numbers
- Java program to find maximum of three numbers
- C# program to find the maximum of three numbers
- Java Program to get the maximum of three long values
- Maximum Product of Three Numbers in C++
- Display the maximum of three integer values in Java
- Power of Three in Python
- Maximum subsequence sum such that no three are consecutive in C++ Program
- Program to find largest product of three unique items in Python
- Program to find length of longest common subsequence of three strings in Python
- Find maximum sum possible equal sum of three stacks in C++
- Program to check whether number is a sum of powers of three in Python
- Program to find largest of three numbers - JavaScript
- Program to change minimum characters to satisfy one of three conditions in Python
- Maximum subsequence sum such that no three are consecutive

Advertisements