subject
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.

ansver
Answers: 1

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 18:40, jeffljr2718
Will gve pints stars and brainliest
Answers: 1
image
Mathematics, 21.06.2019 19:00, bankskry
How many real-number solutions does the equation have? -4x^2 + 10x + 6 = 0 a. no solutions b. two solutions c. infinitely many solutions d. one solution
Answers: 2
image
Mathematics, 21.06.2019 19:20, melly6317
The square root of 9x plus 7 plus the square rot of 2x equall to 7
Answers: 1
image
Mathematics, 21.06.2019 20:30, rubend661
Solve each quadratic equation by factoring and using the zero product property. n^2 - 49 = 0
Answers: 2
You know the right answer?
Define and test a function myrange. this function should behave like python’s standard range functio...

Questions in other subjects:

Konu
Mathematics, 02.11.2020 23:20
Konu
Mathematics, 02.11.2020 23:20
Konu
Geography, 02.11.2020 23:20