What about max()
highest = max(1, 2, 3) # or max([1, 2, 3]) for lists
More Related Contents:
- Find the greatest (largest, maximum) number in a list of numbers
- How to add numbers inside a variable? [closed]
- How to generate random binary numbers 0 or 1 with length of N and with option to control the probability of having 0 or 1?
- Is there a way to ordinate numbers in a list?
- Get the row(s) which have the max value in groups using groupby
- How do I get indices of N maximum values in a NumPy array?
- How to format a floating number to fixed width in Python
- Finding max value in the second column of a nested list?
- python re.sub group: number after \number
- How to find all positions of the maximum value in a list?
- Python: Maximum recursion depth exceeded
- Why doesn’t this division work in Python? [duplicate]
- How to get the index of a maximum element in a NumPy array along one axis
- Find maximum value of a column and return the corresponding row values using Pandas
- What is the maximum float in Python?
- Find the item with maximum occurrences in a list [duplicate]
- numpy max vs amax vs maximum
- How to find the min/max value of a common key in a list of dicts?
- Checking odd/even numbers and changing outputs on number size
- Removing all non-numeric characters from string in Python
- How do you check in python whether a string contains only numbers?
- How to make numpy.argmax return all occurrences of the maximum?
- Maximum and minimum value of C types integers from Python
- How do I find the maximum (larger, greater) of 2 numbers?
- Check if all values in list are greater than a certain number
- Generating non-repeating random numbers in Python
- How to convert a negative number to positive?
- Turn a single number into single digits Python [duplicate]
- Python: take max N elements from some list
- Get max value from row of a dataframe in python [duplicate]