Set up a user defined function for finding square root If the supplied number is not negative the function should find the square root of the value passed value using the proper Numpy function and return it rounded to 3 decimal places. If the passed number is negative, then the function should return a string with the value of the square root of the positive portion of the number concatenated with the letter ‘i’ to the right Set seed to 1 and create a Numpy array of 6 randomly generated integer numbers between -10 to 10 Iterate over the values of the Numpy array prepare a report, Use f-string formatting and Use the user defined function for the Square-root column Column names: Row, Number, Running Sum, and Square-root
Set up a user defined function for finding square root
If the supplied number is not negative the function should find the square root of the value passed value using the proper Numpy function and return it rounded to 3 decimal places. If the passed number is negative, then the function should return a string with the value of the square root of the positive portion of the number concatenated with the letter ‘i’ to the right
Set seed to 1 and create a Numpy array of 6 randomly generated integer numbers between -10 to 10
Iterate over the values of the Numpy array prepare a report, Use f-string formatting and Use the user defined function for the Square-root column
Column names: Row, Number, Running Sum, and Square-root

Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 2 images









