LearnPy Hub
← NumPy problems
Medium

Min-Max Scaling

Scale the numbers to the range 0–1 with (a − min) / (max − min) and print them rounded to 2 decimals as a list. The values are not all equal.

Input

One line of numbers.

Output

A list.

Sample 1

Input
10 20 30
Output
[0.0, 0.5, 1.0]

Sample 2

Input
0 5
Output
[0.0, 1.0]
solution.py
Output appears here
Min-Max Scaling · Python practice problem · LearnPy Hub