subject

I am having issues with this program. It keeps giving me the following error: Traceback (most recent call last):
File "/root/sandbox7723bf31/nt-test-6876 4d5e. py", line 2, in
from testmyrange import myRange
ImportError: cannot import name 'myRange' from 'testmyrange' (/root/sandbox7723bf31/testmyrange. py)

define and test a function range with a main defined
#define myRange() method
def myRange(p, q == None and r == None):
if p == 0 and q == None and r == None:
return []
if r == None:
step = 1
else:
step = r

if q == None:
start = 0
stop = p
else:
start = p
stop = q

res = []
i = start
def main():
while True:
res. append(i)

if step > 0 and i + step >= stop:
break
elif step < 0 and i + step <= stop:
break
else:
i = i + step

return res

#call main and end program
if __name__ == "__main__" :
main()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
What are compression artifacts? 1) visible defects in the picture caused by the nature of the compression algorithm. 2) numbers that tell a web server how much to compress a picture for faster transmission. 3) invisible defects in the picture preserved by lossless compression. 4) numbers that tell a photo editing program how much to compress a picture for faster transmission.
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until β€˜esc' and show without narration options. b. click set up slide show, and then select the loop continuously until β€˜esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
You have been supporting csm tech publishing's windows server 2016 server network for over a year. the office has two windows server 2016 servers running active directory and a number of other roles. management has informed you that a small sales office is opening in the same building three floors up. the sales manager wants to install a sales application on a server located in the sales office. this server will have limited physical security because there's no special room dedicated for it, which means it will be accessible to non-it personnel and visitors. you're considering installing windows server 2016 server core on the new server because accessing its console regularly probably won't be necessary, and this server will be managed from one of the other csm tech publishing servers. what are the benefits and drawbacks of using server core for this branch office? what are some things you should do to set up this server management environment?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
You know the right answer?
I am having issues with this program. It keeps giving me the following error: Traceback (most recen...
Questions
question
Business, 07.12.2020 05:40
question
Mathematics, 07.12.2020 05:40