Python programming challenges served by the ReadingBat platform. Students solve challenges in the browser; the server evaluates answers by running Python functions against test cases defined in each file.
- Java 17+
make build # Build without tests
make tests # Run all tests
make run # Start the server on port 8080Run make help to see every available target. Other common ones:
make lint # Run kotlinter + detekt
make format # Format Kotlin sources
make cc # Continuous compilation while you edit
make uber # Build and run the fat jar- Create a Python file in
python/<group_dir>/following this pattern:
# @desc Description of the challenge
def challenge_name(param1, param2):
return result
def main():
print(challenge_name(arg1, arg2)) # each print = one test case
if __name__ == '__main__':
main()-
Register the challenge in
src/main/kotlin/Content.kt— either add achallenge()call or ensure the filename matches an existingincludeFilesWithTypeglob. Return types are qualified, e.g.,ReturnType.IntType. -
Run
make lintthenmake teststo verify.