Skip to content

Commit 8eb16fc

Browse files
Merge branch 'master' into 19-Bottles-Of-Milk
2 parents d5e4e26 + cca07cb commit 8eb16fc

File tree

96 files changed

+846
-517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+846
-517
lines changed

Diff for: .github/workflows/learnpack-audit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
uses: actions/setup-node@v2
2626
with:
2727
node-version: ${{ matrix.node-version }}
28-
- run: npm install learnpack -g
28+
- run: npm install @learnpack/learnpack@latest -g
2929
- run: learnpack audit

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@
77
!learn.json
88
!bc.json
99
!README.md
10+
!README.es.md
1011

1112
!/exercises
1213
!/exercises/*
1314

15+
*.pyc
16+
__pycache__/
17+
.pytest_cache/
18+
1419
!/.learn
1520
/.learn/**
1621
!/.learn/resets

Diff for: .gitpod.Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ FROM gitpod/workspace-full:latest
22

33
USER gitpod
44

5-
RUN pip3 install pytest==4.4.2 pytest-testdox mock
6-
RUN npm i learnpack@0.1.19 -g && learnpack plugins:install learnpack-python@0.0.35
7-
5+
RUN pip3 install pytest==4.6.0 pytest-testdox mock
6+
RUN npm i @learnpack/learnpack@2.1.20 -g && learnpack plugins:install @learnpack/python@1.0.0

Diff for: .gitpod.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ ports:
77

88
vscode:
99
extensions:
10-
- learnpack.learnpack-vscode
10+
- learn-pack.learnpack-vscode
11+
1112

1213
github:
1314
prebuilds:

Diff for: README.es.md

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!-- hide -->
2+
# 🐍 Tutorial y Ejercicios para Principiantes de Python
3+
4+
Por <a href="https://twitter.com/alesanchezr">@alesanchezr</a> y <a href="https://github.com/4GeeksAcademy/python-beginner-programming-exercises/graphs/contributors">otros colaboradores</a> en <a href="http://4geeksacademy.co/">4Geeks Academy</a><a href="https://www.4geeksacademy.com"><img height="280" align="right" src="https://github.com/ElviraQDP/python-beginner-programming-exercises/blob/master/badge-python-bg.png"></a>
5+
<!-- endhide -->
6+
Esta serie en particular es para principiantes de Python. Aprenderás los siguientes conceptos:
7+
8+
1. La función `print`,
9+
10+
2. tipos de datos,
11+
12+
3. listas y tuplas
13+
14+
4. funciones y diccionarios.
15+
16+
Todo el tutorial es 👆 interactivo, ✅ calificado automáticamente y con 📹 videos tutoriales.
17+
18+
<!-- hide -->
19+
20+
¡Te necesitamos! Estos ejercicios se crean y mantienen con colaboradores como tú. Si encuentra salgún error o falta de ortografía, contribuye y/o infórmanos.
21+
22+
<p align="center">
23+
<a href="https://www.youtube.com/watch?v=GjQEotj3t6Y&list=PLCVs_S8Skwp9_apbj_ls2euakDALiWqSN"><img src="https://github.com/4GeeksAcademy/python-beginner-programming-exercises/blob/master/python-intro.gif?raw=true"></a>
24+
</p>
25+
26+
## Instalación en un solo clic:
27+
28+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/4GeeksAcademy/python-beginner-programming-exercises.git)
29+
30+
## Instalación local:
31+
32+
1. Instala learnpack, el package manager para tutoriales y el plugin compilador de html para learnpack, asegúrate de tener instalado node.js 14+:
33+
34+
```
35+
$ npm i learnpack -g
36+
$ learnpack plugins:install learnpack-python
37+
```
38+
39+
2. Descarga este ejercicio en particular usando learnpack y `cd` dentro de la carpeta:
40+
41+
```
42+
$ learnpack download python-beginner-programming-exercises
43+
$ cd python-beginner-programming-exercises
44+
```
45+
46+
Nota: Una vez que termines de descargarlo, encontrarás una carpeta llamada "exercises" que contiene los ejercicios.
47+
48+
3. Inicializa el tutorial/exercises ejecutando el siguiente comando al mismo nivel en el que se encuentra tu archivo bc.json:
49+
50+
```sh
51+
$ pip3 install pytest==4.4.2 pytest-testdox mock
52+
$ learnpack start
53+
```
54+
55+
<!-- endhide -->
56+
57+
Nota: Los ejercicios tienen tests automatizados, sin embargo, estos suelen ser muy rígidos y estrictos. Mi recomendación es que utilices los tests como recomendación o puedes frustrarte.
58+
59+
## ¿Cómo están organizados los ejercicios?
60+
61+
Cada ejercicio es una pequeña aplicación de react que contiene los siguientes archivos:
62+
63+
1. **app.py:** representa el archivo de entrada de python que será ejecutado por el computador.
64+
2. **README.es.md:** Contiene las instrucciones del ejercicio.
65+
3. **test.py:** Contiene el script del test para el ejercicio (no es necesario que abras este archivo)
66+
67+
## Colaboradores
68+
69+
Gracias a estas personas maravillosas ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
70+
71+
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribución: (programador) 💻 (idea) 🤔, (build-tests) ⚠️ , (pull-request-review) 🤓 (build-tutorial) ✅ (documentación) 📖
72+
73+
2. [Paolo (plucodev)](https://github.com/plucodev), contribución: (bug reports) 🐛, (programador), (traducción) 🌎
74+
75+
Este proyecto sigue la especificación [all-contributors](https://github.com/kentcdodds/all-contributors). ¡Todas las contribuciones son bienvenidas!

Diff for: README.md

+29-40
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,36 @@
1-
<table>
2-
<tr>
3-
<td><img src="https://assets.breatheco.de/apis/img/images.php?blob&random&cat=icon&tags=4geeks,32"></td>
4-
<td>
5-
<h1> 🐍 Python Beginner Tutorial and Exercises</h1>
6-
<p>By <a href="https://twitter.com/alesanchezr">@alesanchezr</a> and <a href="https://github.com/4GeeksAcademy/python-beginner-programming-exercises/graphs/contributors">other contributors</a> at <a href="http://4geeksacademy.co/">4Geeks Academy</a></p>
7-
<img src="https://img.shields.io/github/last-commit/4geeksacademy/python-beginner-programming-exercises" />
8-
<a href="https://breatheco.de"><img src="https://img.shields.io/badge/certified-BreatheCode-blue" /></a>
9-
<a href="https://twitter.com/alesanchezr"><img src="https://img.shields.io/twitter/follow/alesanchezr?style=social&logo=twitter" alt="follow on Twitter"></a>
10-
<a href="https://gitpod.io#https://github.com/4GeeksAcademy/python-beginner-programming-exercises.git"><img src="https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod" /></a>
11-
</td>
12-
</tr>
13-
</table>
14-
15-
This particular series are for Python beginners: Start learning python from the `print` function, data-types, lists and touples, functions and dictionaries. The entire tutorial is 👆 interactive, ✅ auto-graded and with. 📹 video tutorials.
16-
17-
<h3>📚 Table of contents:</h3>
18-
<table>
19-
<tr>
20-
<td>1. <a href="https://github.com/4GeeksAcademy/python-beginner-programming-exercises">Python for Beginners</a> </td>
21-
<td>← 🔥 your are here now</td>
22-
<td><a href="https://gitpod.io#https://github.com/4GeeksAcademy/python-beginner-programming-exercises.git"><img src="https://gitpod.io/button/open-in-gitpod.svg" /></a></td>
23-
</tr>
24-
<tr color="white"><td>2. <a href="https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises">Practice Looping Lists and Tuples</a></td></tr>
25-
<tr><td>3. <a href="https://github.com/4GeeksAcademy/python-functions-programming-exercises">Practice functions</a></td></tr>
26-
<tr><td>4. <a href="https://github.com/4GeeksAcademy/master-python-programming-exercises">Master Python (intermediate)</a></td></tr>
27-
<tr><td>5. <a href="https://github.com/4GeeksAcademy/python-http-requests-api-tutorial-exercises">Python API Requests</a></td></tr>
28-
<tr><td>6. What next? <a href="https://github.com/4GeeksAcademy/About-4Geeks-Academy/issues/new">Request a new tutorial</a> or <a href="https://github.com/4GeeksAcademy/About-4Geeks-Academy/labels/help%20wanted">collaborate</a>.<br /> We will feature your profile in our list of contributors</td></tr>
29-
</table>
1+
<!-- hide -->
2+
<img height="280" align="right" src="https://github.com/ElviraQDP/python-beginner-programming-exercises/blob/master/badge-python-bg.png?raw=true">
303

31-
These exercises were built in collaboration, we need you! If you find any bugs or misspells plese contribute and report them.
324

33-
<p align="center">
34-
<a href="https://www.youtube.com/watch?v=GjQEotj3t6Y&list=PLCVs_S8Skwp9_apbj_ls2euakDALiWqSN"><img src="https://github.com/4GeeksAcademy/python-beginner-programming-exercises/blob/master/python-intro.gif?raw=true"></a>
35-
</p>
5+
# 🐍 Python Beginner Tutorial and Exercises
6+
By [@alesanchezr](https://twitter.com/alesanchezr) and [other contributors](https://github.com/4GeeksAcademy/python-beginner-programming-exercises/graphs/contributors) at [4Geeks Academy](http://4geeksacademy.com)
7+
<img align="left" src="https://img.shields.io/github/last-commit/4geeksacademy/python-beginner-programming-exercises">
8+
<!-- endhide -->
9+
10+
This exercises are the ideal first step for anyone trying to learn Python, we start from the most simple challenge like printing a message on the terminal and slowly increase step by step.
11+
12+
This particular series are for Python beginners. You will learn:
13+
14+
1. The `print` function,
15+
16+
2. Data-Types,
3617

18+
3. Lists and Tuples,
3719

38-
<h2>One click installation:</h2>
20+
4. Functions and dictionaries.
21+
22+
The entire tutorial is 👆 interactive, ✅ auto-graded and with 📹 video tutorials.
23+
24+
These exercises were built in collaboration, we need you! If you find any bugs or misspells plese contribute and report them.
25+
26+
<!-- hide -->
27+
## One click installation:
3928

4029
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/4GeeksAcademy/python-beginner-programming-exercises.git)
4130

4231
## Local Installation
4332

44-
1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 12+:
33+
1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 14+:
4534

4635
```
4736
$ npm i learnpack -g
@@ -66,6 +55,7 @@ $ learnpack start
6655

6756
Note: The exercises have automatic grading but its very rigid and string, my recomendation is to ignore the tests and use them only as a recomendation or you can get frustrated.
6857

58+
<!-- endhide -->
6959
## How are the exercises organized?
7060

7161
Each exercise is a small react application containing the following files:
@@ -78,9 +68,8 @@ Each exercise is a small react application containing the following files:
7868

7969
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
8070

81-
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) :computer: (idea) 🤔, (build-tests) :warning:, (pull-request-review) :eyes: (build-tutorial) :white_check_mark: (documentation) :book:
82-
2. [Paolo (plucodev)](https://github.com/plucodev), contribution: (bug reports) :bug:, contribution: (coder), (translation) :earth_americas:
71+
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) 💻 (idea) 🤔, (build-tests) ⚠️ , (pull-request-review) 👀 (build-tutorial) ✅ (documentation) 📖
72+
73+
2. [Paolo (plucodev)](https://github.com/plucodev), contribution: (bug reports) 🐛, contribution: (coder), (translation) 🌎
8374

84-
This project follows the
85-
[all-contributors](https://github.com/kentcdodds/all-contributors)
86-
specification. Contributions of any kind are welcome!
75+
This project follows the[all-contributors](https://github.com/kentcdodds/all-contributors) specification.Contributions of any kind are welcome!

Diff for: exercises/00-Welcome/README.es.md

+21-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# ¡¡Bienvenido al curso inicial de Python!!
1+
# ¡Bienvenido al curso inicial de Python!
22

3-
¡¡Estamos muy entusiasmados por tenerte aquí!! 🎉 😂
3+
¡Estamos muy entusiasmados por tenerte aquí! 🎉 😂
4+
5+
## 💬 Fundamentos:
46

57
Durante este curso aprenderás los siguientes conceptos:
68

@@ -16,14 +18,27 @@ Durante este curso aprenderás los siguientes conceptos:
1618

1719
Por favor, haz clic en el botón `Next →` arriba a la derecha para dirigirte al primer ejercicio.
1820

19-
## Colaboradores
21+
## Lecturas Útiles:
22+
23+
+ [https://datademia.es/blog/que-es-python](https://datademia.es/blog/que-es-python)
24+
25+
+ [https://www.capacitarte.org/blog/nota/que-es-y-para-que-sirve-python](https://www.capacitarte.org/blog/nota/que-es-y-para-que-sirve-python)
26+
27+
## Video Útil:
28+
29+
+ [https://youtu.be/lc5JJTQa4r8](https://youtu.be/lc5JJTQa4r8)
2030

21-
Nuestro agradecimiento para estas maravillosas personas ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
31+
32+
## Colaboradores:
33+
34+
Gracias a estas maravillosas personas ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
2235

2336
1. [Alejandro Sánchez (alesanchezr)](https://github.com/alesanchezr), contribución: (programador) :computer: (idea) 🤔, (build-tests) :warning:, (pull-request-review) :eyes: (build-tutorial) :white_check_mark: (documentación) :book:
37+
2438
2. [Paolo Lucano (plucodev)](https://github.com/plucodev), contribución: (programador) :computer:, (build-tests) :warning:
39+
2540
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribución: (traducción) :earth_africa:
2641

27-
Este proyecto sigue las especificaciones
28-
[all-contributors](https://github.com/kentcdodds/all-contributors).
42+
Este proyecto sigue las especificaciones: [all-contributors](https://github.com/kentcdodds/all-contributors).
43+
2944
¡Todas las contribuciones son bienvenidas!

Diff for: exercises/00-Welcome/README.md

+24-8
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
intro: "https://www.youtube.com/watch?v=amyDNhZwGJQ"
33
---
44

5+
# Welcome to Python Beginner Course!
56

6-
# Welcome to Python Beginner Course!!
7+
We are very excited to have you here! 🎉 😂
78

8-
We are very excited to have you here !! 🎉 😂
9+
## 💬 Fundamentals:
910

1011
During this course you will be learning the following concepts:
1112

@@ -21,13 +22,28 @@ During this course you will be learning the following concepts:
2122

2223
Please click on the `Next →` button on the top right to proceed to the first challenge.
2324

24-
## Contributors
25+
## Useful Readings:
2526

26-
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
27+
+ [https://www.w3schools.com/python/python_intro.asp#:~:text=Python%20has%20a%20simple%20syntax,prototyping%20can%20be%20very%20quick.](https://www.w3schools.com/python/python_intro.asp#:~:text=Python%20has%20a%20simple%20syntax,prototyping%20can%20be%20very%20quick.)
28+
29+
+ [https://www.python.org/doc/essays/blurb/](https://www.python.org/doc/essays/blurb/)
30+
31+
## Useful Video:
32+
33+
+ [https://youtu.be/Y8Tko2YC5hA](https://youtu.be/Y8Tko2YC5hA)
34+
35+
## Contributors:
36+
37+
Thanks to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
2738

2839
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) :computer: (idea) 🤔, (build-tests) :warning:, (pull-request-review) :eyes: (build-tutorial) :white_check_mark: (documentation) :book:
29-
1. [Paolo Lucano (plucodev)](https://github.com/plucodev), contribution: (coder), (build-tests) :warning:
3040

31-
This project follows the
32-
[all-contributors](https://github.com/kentcdodds/all-contributors)
33-
specification. Contributions of any kind are welcome!
41+
2. [Paolo Lucano (plucodev)](https://github.com/plucodev), contribution: (coder), (build-tests) :warning:
42+
43+
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribution: (translator) :earth_africa:
44+
45+
46+
This project follows these specifications: [all-contributors](https://github.com/kentcdodds/all-contributors)
47+
48+
49+
Contributions of any kind are welcome!

Diff for: exercises/01-Console/README.es.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `01` Consola
1+
# `01` Console
22

33
En Python, usamos **print** para que el computador escriba cualquier cosa que queramos (el contenido de una variable, una string dado, etc.) en algo llamado "la consola".
44

@@ -14,4 +14,4 @@ print("Un texto en la consola")
1414

1515
## 📝 Instrucciones:
1616

17-
1. usa **print** para escribir `Hello World!` en la consola. Siéntete libre de intentar otras cosas también.
17+
1. usa **print** para escribir `Hello World!` en la consola. Siéntete libre de intentar otras cosas también.

Diff for: exercises/01-Console/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ Every language has a console, as it was the only way to interact with the users
1111
Today, printing in the console is used mostly as a monitoring and debugging tool, ideal to leave a trace of the content of variables during the program execution.
1212

1313
This is an example of how to use it:
14+
1415
```py
1516
print("How are you?")
1617
```
1718

1819
## 📝 Instructions:
1920

20-
1. Use **print** to print `Hello World!` on the console. Feel free to try other things as well.
21+
1. Use **print** to print `Hello World!` on the console. Feel free to try other things as well.

Diff for: exercises/01-Console/test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
import re
66
import os
77
import pytest
8+
path = os.path.dirname(os.path.abspath(__file__))+'/app.py'
89

910
@pytest.mark.it('Use the function print()')
1011
def test_for_file_output(capsys):
11-
path = os.path.dirname(os.path.abspath(__file__))+'/app.py'
12+
1213
with open(path, 'r') as content_file:
1314
content = content_file.read()
1415
pattern = r"print\s*\("

Diff for: exercises/02-Declare-Variables/README.es.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# `02` Declaración de variables
1+
# `02` Declare Variables
22

33
Las variables actúan como una caja (contenedor) que te permite almacenar distintos tipos de datos. Así es como se define una variable:
4+
45
```py
56
name = "Daniel"
67
```
78

89
## 📝 Instrucciones:
910

1011
1. Declara una variable con el valor "Yellow" y luego imprímelo en la consola.
11-
2. Luego, imprime su valor en la consola usando ```print(name)```
1212

13-
## 💡 Sugerencia:
13+
2. Luego, imprime su valor en la consola usando `print(name)`.
14+
15+
## 💡 Pista:
1416

15-
Puedes darle el nombre que quieras a la variable, pero su valor tiene que ser el texto "Yellow".
17+
+ Puedes darle el nombre que quieras a la variable, pero su valor tiene que ser el texto "Yellow".

Diff for: exercises/02-Declare-Variables/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ name = "Daniel"
1414

1515
1. Declare a new variable with the string value "Yellow" and print the value to the console.
1616

17-
2. Then, print its value on the console using `print(name)`
17+
2. Then, print its value on the console using `print(name)`.
1818

1919
## 💡 Hint:
2020

21-
The name of the variable can be whatever you want, but the value inside has to be the string "Yellow".
21+
+ The name of the variable can be whatever you want, but the value inside has to be the string "Yellow".

0 commit comments

Comments
 (0)