GithubHelp home page GithubHelp logo

fetch's Introduction

Fetch Coding Excercise

This repository contains the necessary files requested by the company Fetch for application to their internship program.

The fetch.py file is a python file that serves to use up the specified amount of rewards given all the possible rewards the user has attained. It should be noted that the program will use up the rewards that have negative points first before using up the oldest rewards by time. I do not believe the ordering to which how these rewards should be given out was actually specified clearly. Therefore, I have made the decision that this is how the system would run. If the amount of rewards is negative, then it is assumed that amount is 0 because it is impossible to spend a negative amount of rewards.

To run the fetch.py file, simply download the file and make sure python is installed on your computer

The command to run the file is

python fetch.py

If your on windows or if your on Linux or Mac, it is

python3 fetch.py

fetch's People

Contributors

michaellin12 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.