programming-examples/python/Math/Maximum and minimum numbers from the specified decimal numbers.py

4 lines
164 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
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))