Spaces:
Sleeping
Sleeping
feat(es): add Spanish coding exercises (Tier 1-3)
Browse files- languages/es/README.md +78 -0
languages/es/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Spanish (Español) - Legesher Python
|
| 2 |
+
|
| 3 |
+
## Getting Started
|
| 4 |
+
|
| 5 |
+
### Run the Hello World Example
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
legesher run languages/es/hello_world.py --lang es
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
### Translate Between Languages
|
| 12 |
+
|
| 13 |
+
```bash
|
| 14 |
+
# Spanish to English
|
| 15 |
+
legesher translate languages/es/hello_world.py --from es --to en
|
| 16 |
+
|
| 17 |
+
# English to Spanish
|
| 18 |
+
legesher translate languages/en/hello_world.py --from en --to es
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
## Files in This Folder
|
| 22 |
+
|
| 23 |
+
| File | Description |
|
| 24 |
+
|------|-------------|
|
| 25 |
+
| `hello_world.py` | Simple example program in Spanish |
|
| 26 |
+
| `REFERENCE.md` | Complete keyword and builtin reference |
|
| 27 |
+
|
| 28 |
+
## Coding Exercises
|
| 29 |
+
|
| 30 |
+
Practice writing Legesher Python in Spanish with these tiered exercises.
|
| 31 |
+
|
| 32 |
+
### Tier 1 — Basic (⭐)
|
| 33 |
+
|
| 34 |
+
| File | Exercise | Difficulty | Time |
|
| 35 |
+
|------|----------|------------|------|
|
| 36 |
+
| `exercises/tier1/juego_del_7.py` | El Juego del 7 — FizzBuzz-style counting game | ⭐ | 10 min |
|
| 37 |
+
| `exercises/tier1/factorial.py` | Factorial — recursive factorial function | ⭐ | 10 min |
|
| 38 |
+
| `exercises/tier1/palindromo.py` | Palíndromo — palindrome check | ⭐ | 10 min |
|
| 39 |
+
| `exercises/tier1/ordenamiento.py` | Ordenamiento — bubble sort without builtins | ⭐⭐ | 15 min |
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
legesher run languages/es/exercises/tier1/juego_del_7.py --lang es
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
### Tier 2 — Applied (⭐⭐)
|
| 46 |
+
|
| 47 |
+
| File | Exercise | Difficulty | Time |
|
| 48 |
+
|------|----------|------------|------|
|
| 49 |
+
| `exercises/tier2/analizador.py` | Analizador de Archivos — CSV file parser | ⭐⭐ | 20 min |
|
| 50 |
+
| `exercises/tier2/frase_del_dia.py` | Cliente API Simple — daily quote API client | ⭐⭐⭐ | 25 min |
|
| 51 |
+
| `exercises/tier2/transformador.py` | Transformador de Datos — JSON grade converter | ⭐⭐ | 25 min |
|
| 52 |
+
| `exercises/tier2/calculadora.py` | Calculadora — interactive calculator | ⭐⭐ | 25 min |
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
legesher run languages/es/exercises/tier2/calculadora.py --lang es
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
### Tier 3 — Domain-specific (⭐⭐⭐)
|
| 59 |
+
|
| 60 |
+
| File | Exercise | Difficulty | Time |
|
| 61 |
+
|------|----------|------------|------|
|
| 62 |
+
| `exercises/tier3/fifa_rating.py` | Análisis de Datos — custom FIFA rating system | ⭐⭐⭐ | 40 min |
|
| 63 |
+
| `exercises/tier3/raspador.py` | Raspador Web — HTML scraper (marca.com) | ⭐⭐⭐⭐ | 60 min |
|
| 64 |
+
| `exercises/tier3/piedra_papel_tijera.py` | Piedra, Papel, Tijera — multi-round game | ⭐⭐⭐ | 45 min |
|
| 65 |
+
| `exercises/tier3/cribo.py` | Cribo de Eratóstenes — prime number sieve | ⭐⭐⭐ | 40 min |
|
| 66 |
+
|
| 67 |
+
```bash
|
| 68 |
+
legesher run languages/es/exercises/tier3/fifa_rating.py --lang es
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
## Quick Reference
|
| 72 |
+
|
| 73 |
+
See [REFERENCE.md](./REFERENCE.md) for the complete list of keyword and builtin translations.
|
| 74 |
+
|
| 75 |
+
## Need Help?
|
| 76 |
+
|
| 77 |
+
- [Main Tutorial](../../docs/tutorials/TUTORIAL.md) - Detailed instructions
|
| 78 |
+
- [Documentation](https://docs.legesher.io) - Full documentation
|