Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

\# 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

Describe new developments in the design of pay structures. page 475

Answered: 1 week ago