programming-examples/python/Math/Maximum and minimum numbers from the specified decimal numbers.py
2019-11-15 12:59:38 +01:00

4 lines
164 B
Python

from decimal import *
data = list(map(Decimal, '2.45 2.69 2.45 3.45 2.00 0.04 7.25'.split()))
print("Maximum: ", max(data))
print("Minimum: ", min(data))