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, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. this can be done by normalizing to values between 0 and 1, or throwing away outliers. for this program, adjust the values by subtracting the smallest value from all the values. the input begins with an integer indicating the number of integers that follow. ex: if the input is 5 30 50 10 70 65, the output is: 20 40 0 60 55
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
The ratio of men to women in a certain factory is 3 to 4 .there are 210 men.how many workers are there?
Answers: 2
You know the right answer?
I am having issues with this program. It keeps giving me the following error: Traceback (most recen...
Questions
question
History, 08.02.2021 06:10
question
Mathematics, 08.02.2021 06:10
question
Mathematics, 08.02.2021 06:10
question
Mathematics, 08.02.2021 06:10
Questions on the website: 13722367