Add a one-line docstring to any Python solution (5 min)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- documentation
Línea de trabajo
Abre el directorio solutions/python y elige un archivo cuya función principal no tenga docstring; el ejemplo two_sum del issue muestra dónde colocarlo. Lee el cuerpo de la función solo lo necesario para escribir una frase precisa, y no toques la lógica. Se considera terminado cuando cada archivo modificado tiene exactamente una línea de docstring justo debajo del def, sin otras ediciones, seguido de un pull request.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Most solution files have a function but no docstring. That makes it harder for others to understand what the function does at a glance. This issue is about adding exactly one line to help the next learner.
Time: ~5 minutes | Level: Complete beginner
What to do
- Pick any file in Python solutions where the main function has no docstring.
- Read the function and understand what it does.
- Add one short docstring immediately below the function definition describing its purpose.
- That's the whole change. No algorithm modifications needed.
Example:
Before:
def two_sum(nums, target):
...
After:
def two_sum(nums, target):
"""Return indices of two numbers that add up to target."""
...
Rules
- Add exactly one docstring to the function.
- Do not change the solution's code or logic.
- If you're unsure what the function does, don't guess.
- Open a Pull Request with your change.
You can claim as many files as you want, either in one PR or separate PRs.
Open for everyone
This issue is open for everyone: beginners, students, and experienced developers. You don't need to know how to solve algorithm problems. If you can read a function and describe what it does in one sentence, you can contribute.
How to contribute
- Fork this repo
- Clone your fork and create a new branch
- Make your change
- Commit, push, and open a Pull Request
New to open source? Start here before anything else:
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 it to contribute.
- Lenguaje dominante
- Python
- Estrellas
- 3
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Huerte/algo-solutions-python
-
5-minutes algorithm all-levels any-language beginner-friendly community documentation easy first-timers-only good first issue help wanted learning no-code-needed open-source python students
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Huerte/algo-solutions-python#399 ·
-
15-minutes 5-minutes algorithm any-language beginner-friendly c cpp csharp easy go good first issue hacktoberfest help wanted java javascript kotlin python rust swift typescript
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Huerte/algo-solutions-python#397 ·
-
15-minutes algorithm all-levels any-language beginner-friendly codewars good first issue hackerrank help wanted interview-prep leetcode open-source students
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Huerte/algo-solutions-python#379 ·
-
15-minutes 5-minutes algorithm any-language beginner-friendly c cpp csharp easy go good first issue hacktoberfest help wanted java javascript kotlin python rust swift typescript
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Huerte/algo-solutions-python#378 ·
-
30-minutes algorithm all-levels any-language codewars hackerrank help wanted interview-prep leetcode medium open-source refactor students
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Huerte/algo-solutions-python#377 ·
Todos los issues de Huerte/algo-solutions-python
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
vllm-project/vllm#69791 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Special topics rows on the Courses page have misaligned columnsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
BCStudentSoftwareDevTeam/cas#481 ·
Los mantenedores suelen responder en 7 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día