Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 31fe53c

Browse files
Merge pull request #86 from UmiKami/exercise-enhancement-Q3-2023
Exercise enhancement q3 2023 - first 10
2 parents 132dd9e + 1e62d64 commit 31fe53c

File tree

84 files changed

+301
-132
lines changed

Some content is hidden

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

84 files changed

+301
-132
lines changed

‎exercises/01-Console/README.es.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

5-
Cada lenguaje tiene una consola, ya que al principio era la única forma de interactuar con los usuarios (antes de que llegaran Windows, Linux o MacOS).
5+
Cada lenguaje de programación tiene una consola, ya que al principio era la única forma de interactuar con los usuarios (antes de que llegaran Windows, Linux o MacOS).
66

77
Hoy en día, la impresión en la consola se utiliza, sobre todo, como herramienta de monitoreo y depuración, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa.
88

@@ -14,4 +14,12 @@ 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.
18+
19+
## 💡 Pistas:
20+
21+
+ Recuerda, para ejecutar el código y ver el resultado en la consola, haz clic en el ícono de caja en la esquina superior izquierda de la pantalla:
22+
23+
https://i.imgur.com/w6u4aDd.png
24+
25+
+ Siéntete libre de intentar otras cosas también.

‎exercises/01-Console/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tutorial: "https://www.youtube.com/watch?v=2sV-2frucUs"
66

77
In Python, we use **print** to make the computer write anything we want (the content of a variable, a given string, etc.) in something called "the console".
88

9-
Every language has a console, as it was the only way to interact with the users at the beginning (before Windows or MacOS arrived).
9+
Every programming language has a console, as it was the only way to interact with the users at the beginning (before Windows or MacOS arrived).
1010

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

@@ -18,4 +18,13 @@ print("How are you?")
1818

1919
## 📝 Instructions:
2020

21-
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.
22+
23+
24+
## 💡 Hints:
25+
26+
+ Remember, to run the code and see the output on the console, click on the box icon in the top left of the screen:
27+
28+
https://i.imgur.com/w6u4aDd.png
29+
30+
+ Feel free to try other things as well.

‎exercises/01-Console/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ def test_for_file_output(capsys):
1919
@pytest.mark.it('Print Hello World! on the console')
2020
def test_for_console_log(capsys):
2121
captured = buffer.getvalue()
22-
assert captured=="Hello World!\n" #add \n because the console jumps the line on every print
22+
assert "Hello World!\n"incaptured #add \n because the console jumps the line on every print
2323

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# `02` Declare Variables
22

3-
Las variables actúan como una caja (contenedor) que te permite almacenar distintos tipos de datos. Así es como se define una variable:
3+
En la programación, usamos variables como si fueran cajas (o contenedores) para guardar diferentes tipos de información. Así es cómo creamos una variable:
44

55
```py
66
name = "Daniel"
77
```
88

9+
En este ejemplo, `name` es la variable, actuando como una caja para almacenar el valor `"Daniel"`. Dentro de esta 'caja', estamos almacenando el valor `"Daniel"`, y podemos usar `name` para referirnos a este valor más tarde. Al nombrar tus variables, puedes elegir casi cualquier nombre, pero debe comenzar con una letra o un guión bajo (`_`). Es útil elegir un nombre que describa lo que hay dentro de la 'caja' para que puedas entender fácilmente lo que representa más adelante.
10+
911
## 📝 Instrucciones:
1012

11-
1. Declara una variable con el valor "Yellow" y luego imprímelo en la consola.
13+
1. Declara una variable con el valor `"Yellow"` y luego imprímelo en la consola.
1214

1315
2. Luego, imprime su valor en la consola usando `print(name)`.
1416

1517
## 💡 Pista:
1618

1719
+ Puedes darle el nombre que quieras a la variable, pero su valor tiene que ser el texto "Yellow".
20+
21+
+ Si necesitas más explicación sobre qué son los **strings** y cómo funcionan en Python, puedes ver este clip: https://www.youtube.com/watch?v=yT0jixU3M2c&ab_channel=ProgramaResuelto (`ctrl + click` en el enlance para abrir el video)

‎exercises/02-Declare-Variables/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ tutorial: "https://www.youtube.com/watch?v=dWWvZkaPwDw"
44

55
# `02` Declare Variables
66

7-
Variables act as a box (container) that lets you store different types of data. This is how we set a variable:
7+
In programming, we use variables like boxes (or containers) to store different kinds of information. Here's how to create a variable:
88

99
```py
1010
name = "Daniel"
1111
```
1212

13+
In this example, `name` is the variable, acting like a box to store the value `"Daniel"`. Inside this 'box', we're storing the value `"Daniel"`, and we can use `name` to refer to it later. When naming your variables, you can choose almost any name, but it must begin with a letter or an underscore (`_`). It's helpful to pick a name that describes what's inside the 'box' so you can easily understand what it represents later on.
14+
1315
## 📝 Instructions:
1416

15-
1. Declare a new variable with the string value "Yellow" and print the value to the console.
17+
1. Declare a new variable with the string value `"Yellow"` and print the value to the console.
1618

1719
2. Then, print its value on the console using `print(name)`.
1820

1921
## 💡 Hint:
2022

2123
+ The name of the variable can be whatever you want, but the value inside has to be the string "Yellow".
24+
+ If you need further explanation on what **strings** are and how they work in python, you can watch this clip: https://youtube.com/clip/UgkxyQ_JLmgSUL4l25c8Ly7cCRvk1Gm-EchU (`ctrl + click` on the link to open the video)

‎exercises/02-Declare-Variables/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# your code here
1+
# ✅ ↓ your code here ↓ ✅
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# your code here
1+
# ✅ ↓ your code here ↓ ✅
22

33
color = "Yellow"
44
print(color)

‎exercises/02-Declare-Variables/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ def test_for_variable():
2727
@pytest.mark.it('Print the variable on the console')
2828
def test_for_file_output(capsys):
2929
captured = buffer.getvalue()
30-
assert captured== "Yellow\n" #add \n because the console jumps the line on every print
30+
assert "Yellow\n"incaptured #add \n because the console jumps the line on every print
3131

3232

‎exercises/03-Print-Variables-In-The-Console/README.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ print(my_super_variable)
99

1010
## 📝 Instrucciones:
1111

12-
1. Declara una nueva variable llamada `color` y asígnale el valor `red`.
12+
1. Declara una nueva variable llamada `color` y asígnale el valor `"red"`.
1313

1414
2. Luego, imprime su valor en la consola (puede que tengas que desplazarte en la consola para poder verlo).

‎exercises/03-Print-Variables-In-The-Console/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ print(my_super_variable)
1313

1414
## 📝 Instructions:
1515

16-
1. Declare a new variable called `color` and assign the value `red` to it.
16+
1. Declare a new variable called `color` and assign the value `"red"` to it.
1717

1818
2. Then, print its value on the console (you may have to scroll up in the terminal to see it!).

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /