Question: # Read the number of values n = int(input()) # Read the floating-point values into a list values = list(map(float, input().split())) # Find the maximum
# Read the number of values n = int(input()) # Read the floating-point values into a list values = list(map(float, input().split())) # Find the maximum value max_value = max(values) # Normalize the values and print each with two decimal places for value in values: normalized_value = value / max_value print(f'{normalized_value:.2f}')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
