Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Help Help guys. I am challenged writing Python code for the program below.
How can I write it? Every response will be highly appreciated.
Here is the Challenge!!!!
Background: 
As part of this code challenge you will be using an API available here: https://swapi.co/  
We want to know for all SW star ships, to cover a given distance, how many stops for resupply are required.
The application will take as input a distance in mega lights (MGLT).
The output should be a collection of all the star ships and the total amount of stops required to make the distance between the planets.
All other application details are at your own discretion.
Sample output for 1000000 input:
Y-wing: 74
Millennium Falcon: 9
Rebel Transport: 11
NOTE: The console application can be created in any Language, but Python is the only recommended for this exercise.
Requirements
1) The completed code should be submitted. This may include a working local server which displays the relevant information in a website format.  
2) Accompanying documentation -> Make use of .md files for a simple break down(include start up instructions and motivation for technology choices, plus any other information you feel is relevant).
If there are any queries on the challenge David can be contacted for clarification if necessary.
All aspects of the challenge will be considered during the review, coding style, code organization, correct calculations, working application etc.

Bonus Requirements
3) Testing – Unit or integration testing
4) Mobile first development process
5) Application speed (Page load <1.5 seconds)

   PLEASE WRITE A CODE IN PYTHON ONLY, OR CONVERT YOUR CODE TO P[YTHON.


What I have tried:

I have got no where to start from due to limited knowledge with Python.
Posted
Updated 7-Jun-19 5:11am
Comments
[no name] 7-Jun-19 12:37pm    
Is this like where you farm out your exam taking to someone else? Do we get anything if you "win"?

1 solution

Start by getting the API from the URL. Then learn Python.

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900