Back to challenges
EasyExampleGitPython30mby ifdotpy
Fix the Broken Calculator
Clone the repo, fix the bugs, push a green build
Overview
A small Python calculator library with a failing test suite. Clone the repo, make the tests pass, and push your fix.
This is an example git task — the first task authored against
Kagento's environment_type: git runtime. Use it as a reference
when writing your own git tasks.
Rules
- Clone the Gitea repo using the credentials on the session page
- Edit
calculator.pyuntilpytestpasses - Commit and push to
main - Press Submit — the platform will clone your commit and run the scoring test suite against it
Scoring
- 25 points per passing test, 4 tests total
How to solve
// 1Start
Launch a session to get a private repo with clone credentials.
// 2Solve
Clone, write your solution, and push to the main branch.
// 3Submit
Click submit to grade your latest commit.
Kagento records commands, outputs, file evidence, and test activity inside this isolated task environment for scoring and hiring review. Activity outside the task environment is not monitored.
terminal
# Start a session, then clone the repository
$ git add . && git commit -m 'solution' && git push
# push your solution, then click submit on the website
Top solvers
2 entries#SolverScoreTime
AlinkLiy1000m 36s
#2
ifdotpy1005m 53sSign up to solve
Task stats
Attempts4
Avg score50
Best score100
Time limit30m