Inspiration
Python is the most accessible programming language and yet still a lot of folks are yet to master it. It also happens to be the most popular programming language for interviews and sites like leetcode are powerful but dull and practicing on them take a lot of time. Having a peer AI assistant that one can chat with makes learning data structures & algorithms fun!
What it does
PyCodeGym allows the user to select the difficulty level and topic of interest that they would like to master. Then it comes up with a challenge that the participant should solve.
An intelligent chat assistant is there to help with the context of the problem and the code input by the user. The user can chat with this assistant to ask questions regarding the problem or python syntax. They can also prompt the assistant to evaluate the code once they're done.
Hints are also available to the user without giving them the solution to the problem directly.
How we built it
- Building this was so delightful! I just used prompt engineering to configure the chat bots and LLM output and had to tweak parameters to build this solution.
Challenges we ran into
- The assistant had to be asked to hold back the solution to the problem, otherwise there won't be any point.
- The assistant would give out the same problem again for the same difficulty and topic. Adjusting the temperature helped add more randomness
Accomplishments that we're proud of
- Applied prompt engineering in a fun context and used it to brush up my own skills in the process
- Was amazed at how the LLM assistant understood syntax and was able to pinpoint issues and provide advice accurately
What we learned
- Mastered prompt engineering
- Learnt to use partyrock.aws and leveraged bedrock and multiple LLM models
What's next for PyCodeGym: Python Data structure & Algo tutor
I'm going to share it with friends and colleagues who are looking for a job right now. My friend's kids who are trying to learn python might also enjoy using this tool, esp as an example app they start learning how to build LLM apps on partyrock.
Built With
- partyrock
- prompt-engineering
- wysiwyg


Log in or sign up for Devpost to join the conversation.