The best way to learn to code is by doing it!
Welcome to the Py-Lambdas Code Challenges Page.
These are code challenges and mini coding projects created by our Py-Lambdas community.
Fork this repository and start coding away!🚀 Test your solution by running the associated unit test. When you are reading to submit, submit a Pull Request to the submissions branch with your solution.
Within the directory of your code challenge, run the following command for unit testing:
python -m unittest discover
If the challenge is utilizing pytest
, run the following (after pytest
has been installed):
python -m pytest [filename.py]
Absolutely! All challenges have associated unit tests to check if the code is correct or not. However, we would love any help in manual code review when possible! We want this to be a community effort.
Yes! Please submit a Pull Request to the challenges branch with any challenges you want to add. All code challenges must include a unit test file (make sure your tests pass first!)
Code challenges should be written in the following format:
"""
Challenge: # Description of code challenge
Difficulty: # Expected difficulty level (Very Easy -> Expert)
Examples:
# Example 1
# Example 2
# Example 3
Author: # Your GitHub handle here
"""
def function_name():
pass # Your code here
Prior to submitting, please run your code through black to standardize formatting.
Yes! Reach out on Discord for any help you may need!
Submit all issues here. Issue submissions should include specific filename and the problem. If you have a solution for the bug, include that as well! 😀
Challenges are organized from Very Easy -> Expert. Within each category, they are in no particular order.