Question: Hello everyone! I have an exercise in python I have to write a function that emulate the linspace of numpy, while using loops commands (such

Hello everyone!

I have an exercise in python

I have to write a function that emulate the linspace of numpy, while using loops commands (such as: while, for, etc). So my function should be like this:

def my_linspace(start, stop, n): return result

and as a result I have to take a numerical order (a numerical sequence) (for instance [0,0.5,1,1.5,2])

Some help please...

Thank you so much!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!