subject

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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Nathan wants to create multiple worksheet containing common formatting styles for his team members. which file extension him to save these worksheets? nathan to create multiple worksheets with common styles. he needs to save them with the extension.
Answers: 1
question
Computers and Technology, 23.06.2019 09:20
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
Answers: 1
You know the right answer?
Define and test a function myrange. this function should behave like python’s standard range functio...
Questions
Questions on the website: 13722362