Question: Write a function called num _ days _ big _ percent _ chg that has two inputs: a 1 - D array that contains the
Write a function called numdaysbigpercentchg that has two inputs: a D array that contains the values of a stock index and a number that is a percent. The function calculates and returns the total number of trading days where the magnitude of the percent change up or down in the stock index since the previous day is greater than the value of the percent input into the function. Do not use loops or looplike structures like list comprehensions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
