Mathematics, 16.12.2019 15:31 ceelow
Define and test a function myrange. this function should behave like python’s standard range function, with the required and optional arguments, but should return a list.
do not use the range function in your implementation!
hints:
study python’s on range to determine the names, positions, and what to do with your function’s parameters.
use a default value of none for the two optional parameters. if these parameters both equal none, then the function has been called with just the stop value. if just the third parameter equals none, then the function has been called with a start value as well. thus, the first part of the function’s code establishes what the values of the parameters are or should be. the rest of the code uses those values to build a list by counting up or down.
Answers: 1
Define and test a function myrange. this function should behave like python’s standard range functio...
Mathematics, 02.11.2020 23:20
Mathematics, 02.11.2020 23:20
Geography, 02.11.2020 23:20