I’m taking this test and what I don’t understand is the purpose of doing this:
in part 11 of the 13 questions asked it states the following:
Define a final function called
get_work that takes in
acceleration , and
Work is defined as force multiplied by distance. First, get the
get_force , then multiply that by
distance . Return the result.
This is the answer:
def get_work(mass, acceleration, distance): force = get_force(mass, acceleration) return force * distance
neither force, nor distance seems to have any relationship to the final answer? I can’t wrap my head around why “force” and “distance” are needed?
You must select a tag to post in this category. Please find the tag relating to the section of the course you are on E.g. loops, learn-compatibility
When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer!