QuantEcon / QuantEcon/lecture-python-programming
[python_by_example] While-loop description inverts the loop condition
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 72
- Forks
- 31
- Merge medio
- 2 d 20 h
- PR fusionados (30 d)
- 8
Descripción
In the "While loops" section, python_by_example.md currently reads:
A while loop will keep executing the code block delimited by indentation until the condition (
i < ts_length) is satisfied.
The logic is inverted: a while loop executes the block while the condition is true, and stops once it fails. As written, "until the condition is satisfied" describes a loop that runs while i < ts_length is false.
Suggested wording:
A while loop will keep executing the code block delimited by indentation as long as the condition (
i < ts_length) is true.
This matches the sentence that follows ("the program will keep adding values to the list until i equals ts_length"), which is stated correctly.
Found during native-editor review of the French edition — the machine translation had faithfully reproduced the inverted sentence, and the editor corrected it target-side in QuantEcon/lecture-python-programming.fr#25. Until it is corrected here, the French edition deliberately diverges from the source on this sentence. Same discovery path as #594.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
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.
Línea de trabajo
Abre python_by_example.md y busca la sección “While loops”. Reemplaza la descripción invertida para que indique que el bloque se ejecuta mientras la condición (i < ts_length) sea verdadera; después, comprueba que la redacción de la oración siguiente sea coherente y revisa la documentación renderizada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- documentation
- Tipo de issue
- Documentación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 92/100