What about max()
highest = max(1, 2, 3) # or max([1, 2, 3]) for lists
Related Contents:
- Is there a way to convert number words to Integers?
- Get the row(s) which have the max value in groups using groupby
- How to extract numbers from a string in Python?
- Getting key with maximum value in dictionary?
- How do I get indices of N maximum values in a NumPy array?
- How to format a floating number to fixed width in Python
- Find the column name which has the maximum value for each row
- python re.sub group: number after \number
- Getting the index of the returned max or min item using max()/min() on a list
- Python math is wrong [duplicate]
- Finding max value in the second column of a nested list?
- How to find all positions of the maximum value in a list?
- 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
- Python: Maximum recursion depth exceeded
- Grouping / clustering numbers in Python
- 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]
- What is the most pythonic way to check if an object is a number?
- How to generate random numbers that are different? [duplicate]
- How to find the min/max value of a common key in a list of dicts?
- numpy max vs amax vs maximum
- Pandas max value index
- 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
- return max value from pandas dataframe as a whole, not based on column or rows
- How can I check if my python object is a number? [duplicate]
- 5 maximum values in a python dictionary
- Python floating-point math is wrong [duplicate]
- Which maximum does Python pick in the case of a tie?
- Find min, max, and average of a list
- Using Python’s max to return two equally large values
- Maximum and minimum value of C types integers from Python
- How do you check in python whether a string contains only numbers?
- How to make numpy.argmax return all occurrences of the maximum?
- How do I find the maximum (larger, greater) of 2 numbers?
- Check if all values in list are greater than a certain number
- Python string prints as [u’String’]
- How to use MinGW’s gcc compiler when installing Python package using Pip?
- How do I insert a JPEG image into a python Tkinter window?
- Python : When is a variable passed by reference and when by value? [duplicate]
- How to add a calculated field to a Django model
- How to use inspect to get the caller’s info from callee in Python?
- Head and tail in one line
- How to set up custom middleware in Django
- Linear regression of arrays containing NANs in Python/Numpy
- How to send a cv::Mat to python over shared memory?
- T-test in Pandas