Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In lists.py , start by writing a function that takes one floating point number x as its argument and returns . The math module has

In lists.py, start by writing a function that takes one floating point number x as its argument and returns
. The math module has a square root function.
Using a loop, read 5 floating point values from the user into a list. Apply the function you wrote to each value in the list and print the results in reverse order.
Enter 5 values:
2
3
4
5
6
1082.44948974627.236067977322.0136.73205080841.4142135624
Or another run of the program:
Enter 5 values:
1.2
-2
10
0
2.41
71.54002246960.05003.16227766-38.58578643769.73544511501

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_2

Step: 3

blur-text-image_3

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

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions