Question: Write a function that acts like the Python Range. The function must take compulsory one argument and 2 not-mandatory arguments. Users can send the range
Write a function that acts like the Python Range. The function must take compulsory one argument and 2 not-mandatory arguments. Users can send the range as a single number or send both lower and upper bound or step to count it from (Descending). Both Upper bound and Step are not mandatory to send via function call but prototype must be define and the code must be available to solve any of the arguments passed via the main function. Create a mani function whereby users will send the value(s) and return it back to the main as a list. Write a function that acts like the Python Range. The function must take compulsory one argument and 2 not-mandatory arguments. Users can send the range as a single number or send both lower and upper bound or step to count it from (Descending). Both Upper bound and Step are not mandatory to send via function call but prototype must be define and the code must be available to solve any of the arguments passed via the main function. Create a mani function whereby users will send the value(s) and return it back to the main as a list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
