GithubHelp home page GithubHelp logo

code-challenges's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

code-challenges's Issues

2 Typos in README

  1. In
    "How do I get started?
    Fork this repository and start coding away!๐Ÿš€ Test your solution by running the associated unit test. When you are reading to submit, submit a Pull Request to the submissions branch with your solution."

I believe that 'reading' should be replaced with 'ready'.

Related: are you really expecting users to submit their solutions each time they complete a challenge. If so, are those solutions accessible somewhere? It might be useful to be able to see how solutions differ, similar to what codewars does, but it might not be necessary, since each challenge has tests and therefore, the users will know whether their code is successful or not.

If the expectation is to submit your solutions, it might be helpful to include an additional explanation of how to access others' solutions.

  1. In
    "An example of a good challenge to use as a template for now would be the Circle challenge. SpecificA ally, your new challenge should have:"

"SpecificA ally" should be changed to "Specifically"

Circle's test_area test uses formula for circumference

The area of a circle should always be `ฯ€ * diameter`

image

Minor issue noted in test_area function in test_circle.py:

  • Definition noted in line 32 is circumference, not area (C = 2ฯ€r, A = ฯ€r^2)
  • This actually won't be caught as of now because of the test on lines 34-35, since 2ฯ€r and ฯ€r^2 both equal 4ฯ€ when r=2.
    Recommend changing this test case to:
    circle = Circle(3)
    self.assertEqual(circle.area, math.pi * 9)

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.