https://github.com/readingbat/readingbat-python-content
ReadingBat Python Content
https://github.com/readingbat/readingbat-python-content
python readingbat
Last synced: about 2 months ago
JSON representation
ReadingBat Python Content
- Host: GitHub
- URL: https://github.com/readingbat/readingbat-python-content
- Owner: readingbat
- License: apache-2.0
- Created: 2020-04-23T05:42:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2026-03-30T18:28:47.000Z (2 months ago)
- Last Synced: 2026-03-30T20:28:18.406Z (2 months ago)
- Topics: python, readingbat
- Language: Python
- Homepage: https://www.readingbat.com/content/python
- Size: 610 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ReadingBat Python Content
Python programming challenges served by the [ReadingBat](https://github.com/readingbat) platform. Students solve challenges in the browser; the server evaluates answers by running Python functions against test cases defined in each file.
## Prerequisites
- Java 17+
## Setup
```bash
make compile # Build without tests
make tests # Run all tests
make run # Start the server on port 8080
```
## Adding a Challenge
1. Create a Python file in `python//` following this pattern:
```python
# @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()
```
2. Register the challenge in `src/main/kotlin/Content.kt` — either add a `challenge()` call or ensure the filename matches an existing `includeFilesWithType` glob.
3. Run `make tests` to verify.