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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!