A fun minigame where you solve 3 Python coding problems for fun
Complete 3 Python coding problems as quickly as you can:
- Reverse a String -
reverse_string.py - FizzBuzz -
fizzbuzz.py - Make a Pyramid -
pyramid.py
-
Clone this repository
git clone <your-repo-url> cd SpeedCoding
-
Run the challenge
python main.py
-
Get instructions
python main.py --help
- Open each Python file in your favorite editor
- Find the function with
TODO: Implement this function - Complete the function according to the instructions
- Run
python main.pyto test your solutions - Fix any failing tests and try again!
| File | Problem | Difficulty | Description |
|---|---|---|---|
reverse_string.py |
Reverse a String | ⭐ | Return the input string reversed |
fizzbuzz.py |
FizzBuzz | ⭐⭐ | Classic FizzBuzz with 3, 5, and 15 rules |
pyramid.py |
Make a Pyramid | ⭐⭐⭐ | Create a centered pyramid with asterisks |
Each file contains comprehensive test cases that will:
- ✅ Show you exactly what's expected
- ❌ Point out what went wrong
- 📊 Give you a score for each problem
- Read carefully: Each problem has detailed instructions and examples
- Test frequently: Run
python main.pyoften to check your progress - Don't modify tests: The test cases are there to help you!
- Ask questions: If you get stuck, don't hesitate to ask for help
- 3/3 problems solved: 🎉 Perfect! You're ready for advanced challenges!
- 2/3 problems solved: 👍 Great work! You're on the right track!
- 1/3 problems solved: 💪 Good start! Keep practicing!
- 0/3 problems solved: 🚀 Don't give up! Every expert was once a beginner!
$ python main.py
============================================================
🚀 SPEED CODING CHALLENGE - TEST RESULTS
============================================================
========================================
PROBLEM 1: REVERSE STRING
========================================
Testing reverse_string function...
✓ Test 1: PASSED - 'hello' -> 'olleh'
✓ Test 2: PASSED - 'Python' -> 'nohtyP'
...
============================================================
🏆 FINAL RESULTS
============================================================
Problems completed: 3/3
🎉 CONGRATULATIONS! You solved all problems!Found a bug or want to add more problems? Feel free to submit a pull request!
This project is open source and available under the MIT License.
Happy Coding! 🐍✨