First of all, thank you for taking the time to contribute!
This project celebrates Python’s fun side — Easter eggs, quirks, jokes, and surprising behaviors. Every contribution helps make this collection more delightful and educational.
You’re welcome to contribute:
- 🥚 New Python Easter eggs
- 🤯 Language quirks or surprising behaviors
- 📚 Better explanations or clarifications
- 🧪 Minimal runnable examples
- 📝 Typos, formatting, or wording improvements
- 🎨 Improvements to documentation structure
To keep the project consistent and high-quality, please follow these rules:
- Examples should be short and clear
- Prefer REPL-style snippets (
>>>) when possible - Avoid unnecessary complexity
Each Easter egg section should include:
- A clear title
- A short explanation
- A Python code example
- An expected output (if applicable)
Example structure:
## Easter Egg Title
```python
>>> example()
```
Explanation here.
### Expected output:
```txt
output
```- Code examples must work on CPython
- Mention version-specific behavior clearly (e.g. Python 3.9 only)
- Avoid third-party libraries unless absolutely required
- Do not include destructive or unsafe code
- Small additions → directly in
README.md - Larger topics → add a new file under
docs/and link it in the README
-
Fork the repository
-
Create a new branch
git checkout -b add-new-easter-egg
-
Make your changes
-
Commit with a clear message
git commit -m "Add NaN comparison behavior example" -
Push your branch
git push origin add-new-easter-egg
-
Open a Pull Request
Before submitting, ensure:
- Code examples are correct
- Markdown renders properly
- Output matches the explanation
- No unrelated changes included
- Clear description of what you added
Please avoid:
- Opinion-heavy content without technical backing
- Duplicate Easter eggs
- Large binaries or media files
- Breaking existing examples
By contributing, you agree to follow the project’s Code of Conduct.
Be respectful, kind, and constructive.
If you’re unsure whether something fits:
- Open an issue
- Or start a discussion via a pull request