Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CODE NOT WORKING HELP # Taking the list of float values from the user numbers = list(map(float, input().split())) # Storing first element to maximum maximum
CODE NOT WORKING HELP
\# Taking the list of float values from the user numbers = list(map(float, input().split())) \# Storing first element to maximum maximum = numbers [0] \# Loop through numbers and then find maximum value for num in numbers: \# Updating maximum value if num > maximum: maximum = num \# Loop through the numbers to adjust the value by dividing by maximum value \# print the number upto 2 decimal places with space separated. for num in numbers: value = num / maximum print ({:.2f}. format(value), end=' ') Output is nearly correct, but whitespace differs. See highlights below. Input Your output Expected output 2:Compare output 0/4 Output is nearly correct, but whitespace differs. See highlights below. Input 3:Compare output 0/3 Output is nearly correct, but whitespace differs. See highlights below. Input Your output Expected output
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started