What about max()
highest = max(1, 2, 3) # or max([1, 2, 3]) for lists
More Related Contents:
- Find the greatest number in a list of numbers
- How do you find min and max without using min and max function [duplicate]
- How to extract numbers from a string in Python?
- Getting key with maximum value in dictionary?
- Python math is wrong [duplicate]
- Find the column name which has the maximum value for each row
- Getting the index of the returned max or min item using max()/min() on a list
- Python: Maximum recursion depth exceeded
- How to get the index of a maximum element in a NumPy array along one axis
- Grouping / clustering numbers in Python
- What is the most pythonic way to check if an object is a number?
- How to generate random numbers that are different? [duplicate]
- Checking odd/even numbers and changing outputs on number size
- How to limit a number to be within a specified range? (Python)
- Removing all non-numeric characters from string in Python
- How can I check if my python object is a number? [duplicate]
- Set maximum value (upper bound) in pandas DataFrame
- Pandas max value index
- return max value from pandas dataframe as a whole, not based on column or rows
- Loop until a specific user input [duplicate]
- Which maximum does Python pick in the case of a tie?
- Using Python’s max to return two equally large values
- Python floating-point math is wrong [duplicate]
- Max in a sliding window in NumPy array
- Python: Number of the Week in a Month
- Python – Regular expressions get numbers between parenthesis
- Python Pandas add column for row-wise max value of selected columns [duplicate]
- How to find the max number(s) in a list with tied numbers
- Parse currency into numbers in Python
- How to find the maximum number in a list using a loop?