Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speed Coding Challenge

A fun minigame where you solve 3 Python coding problems for fun

The Challenge

Complete 3 Python coding problems as quickly as you can:

  1. Reverse a String - reverse_string.py
  2. FizzBuzz - fizzbuzz.py
  3. Make a Pyramid - pyramid.py

Quick Start

  1. Clone this repository

    git clone <your-repo-url>
    cd SpeedCoding
  2. Run the challenge

    python main.py
  3. Get instructions

    python main.py --help

How to Play

  1. Open each Python file in your favorite editor
  2. Find the function with TODO: Implement this function
  3. Complete the function according to the instructions
  4. Run python main.py to test your solutions
  5. Fix any failing tests and try again!

Files Overview

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

Testing

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

Tips for Success

  • Read carefully: Each problem has detailed instructions and examples
  • Test frequently: Run python main.py often 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

Scoring

  • 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!

🎮 Example Run

$ 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!

🤝 Contributing

Found a bug or want to add more problems? Feel free to submit a pull request!

📝 License

This project is open source and available under the MIT License.


Happy Coding! 🐍✨

About

A fun activity for Devs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages