Translate an existing Python solution into another language

Open Beginner friendly
#379 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
content

Research direction

Start by reading TOPICS.md or browsing the solutions/python directory to pick one small solution you understand, and comment on the issue with the file and target language so work is not duplicated. The new file goes under solutions/<language>/practice<next number>.<ext>, so check the existing file names in that directory to find the next free number and match the convention. Done means the ported solution is committed on a branch and opened as a pull request, having actually run with your chosen language's toolchain.

Written by the indexing model from the issue text.

Description

15-minutes algorithm all-levels any-language beginner-friendly codewars good first issue hackerrank help wanted interview-prep leetcode open-source students

Description

Learn a new language by porting code you can already read

Take any Python solution in this repo and rewrite it in another language. It's one of the best ways to learn a language because the logic is already solved. You can focus on understanding the syntax, structure, and features of the language you're learning.

Time: ~15 minutes | Level: Beginner

Task
  • Browse the existing solutions in TOPICS.md or check the Python solutions.
  • Pick any Python solution.
  • Rewrite it in your language.
  • Save it as solutions/<language>/practice<next number>.<ext>.

The goal is to learn by translating code, not just copying it. Try to understand how the original works and how the same logic is expressed in your chosen language.

Comment which file and language you picked so others don't duplicate your work.

Open for everyone

This issue is open for everyone: beginners, experienced developers, students, and people who don't code at all. Any language, any level, no experience required. If you want to help, you are welcome here.

How to contribute

  1. Fork this repo.
  2. Clone your fork and create a new branch.
  3. Make your change.
  4. Commit, push, and open a Pull Request.

New to open source? Start here before anything else:

Getting Started Guide

Prefer video? Watch this: How to contribute on GitHub (YouTube)

If this repo helps you or you like where it is going, a star is a nice way to say thanks and helps other people find it. Entirely optional, and you do not need one to contribute.

Dominant language
Python
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Huerte/algo-solutions-python

All issues in Huerte/algo-solutions-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.