- Notifications
You must be signed in to change notification settings - Fork77
exercises 00-welcome to 02.1-create-a-script#28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
18 commits Select commitHold shift + click to select a range
e6b23d8
Update README.md
josemoracard8b86b91
Update README.md
josemoracard0fa60de
Update README.md
josemoracard18f856e
Update README.es.md
josemoracardc517841
Update README.md
josemoracard92e4836
Update README.es.md
josemoracard33e6099
Update README.md
josemoracard8270d41
Update README.es.md
josemoracardd801eda
Update README.md
josemoracard3bfd4db
Update README.md
josemoracarddd5a27e
Update README.md
josemoracard968546b
Update README.md
josemoracard3eda4ed
Update README.es.md
josemoracardb1ba4e7
Update README.md
josemoracard5dcd8a5
Update README.es.md
josemoracard08e722e
Update README.md
josemoracard65c5ce4
Update README.es.md
josemoracard0f77741
Create solution.hide.py
josemoracardFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
16 changes: 8 additions & 8 deletions.learn/exercises/00-welcome/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
24 changes: 11 additions & 13 deletions.learn/exercises/00-welcome/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions.learn/exercises/01-new-terminal/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# `01` New Terminal | ||
Este motor de ejercicios haceuso de tu terminal, eso significa que no puedes escribir en el terminal actual en la parte inferior de tu pantalla. | ||
## 📝 Instrucciones: | ||
1.Para podercompletar este tutorial, tienes que abrir un nuevo terminal. Eso lo puedes hacerdándole *clic* en elmenú estilo hamburguesa en la parte superior izquierda de tu pantalla y eligiendo la opción: | ||
```bash | ||
menu =>Terminal =>Nuevo terminal | ||
``` | ||
 | ||
## 💡 Pista: | ||
+ Tienes una lista de todos los terminales abiertos en la parte inferior derecha de tu pantalla, siempre puedes cambiar entre terminales o crear nuevos. | ||
 |
14 changes: 7 additions & 7 deletions.learn/exercises/01-new-terminal/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# `01` New Terminal | ||
Thistutorial engine takes over your terminal, meaning that you cannot type on the current terminal at the bottom of your screen. | ||
## 📝 Instructions: | ||
1. In order to complete this tutorial, you have to open a new terminal, and you can do so by clicking on the hamburger menu on the top left of the screen and choosing the option: | ||
```text | ||
menu =>Terminal =>New Terminal | ||
``` | ||
 | ||
## 💡 Hint: | ||
+ You have a list of all the opened terminals on the bottom-right side of the screen, you can always swap between terminals or create new ones. | ||
 |
10 changes: 5 additions & 5 deletions.learn/exercises/01.2-pipenv/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions.learn/exercises/01.2-pipenv/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions.learn/exercises/02-install/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions.learn/exercises/02-install/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions.learn/exercises/02.1-create-a-script/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
# `02.1` Create a Script | ||
Python es un lenguaje de secuencias de comandos, lo que significa que para ejecutar el código de Python no es necesariocompilar, todo lo que tienes que hacer es crear un archivo con la extensión `.py` y correrlo utilizando `python name_of_file.py`. | ||
Vamos a crear nuestro primer Python script. | ||
## 📝 Instrucciones: | ||
1. Crea un nuevo archivo `app.py` en la raíz del proyecto. (Asegúrate de que estás en la raíz). | ||
2. Añade el código para imprimir`Hello World` en el terminal utilizando la función `print`. | ||
```py | ||
print("Hello World") | ||
``` | ||
3. Corre tu Python script escribiendo en el terminal `$ python app.py`. | ||
## 💻 Resultado Esperado: | ||
Luego de que corres el comando deberías ver algo así: | ||
 | ||
## 💡 Pistas: | ||
+ Tu archivo `app.py` debe estar al lado de los archivos `.gitignore`, `learn.json` o `Pipfile`. | ||
+ También puedes crear el archivo utilizando el comando en la terminal: `$ touch app.py` y abrirlo dándole doble clic en el nombre del archivo o escribiendo `$ code app.py`. | ||
17 changes: 9 additions & 8 deletions.learn/exercises/02.1-create-a-script/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
# `02.1` Create a Script | ||
Python is a scripting language, meaning that to run a Python code, you don't need to compile; all you have to do is create a file with the `.py` extension and run it by using `python name_of_file.py`. | ||
Let's create our firstPython script. | ||
## 📝 Instructions: | ||
1. Create a new `app.py` file in the root of the project. (Make sure you areat the root). | ||
2. Add the code to print`Hello World` on the terminal using the `print` function. | ||
```py | ||
print("Hello World") | ||
``` | ||
3. Run your Python script by typing on the terminal `$ python app.py`. | ||
##💻Expected Result: | ||
After you run the command, you should see something like this: | ||
 | ||
## 💡Hints: | ||
+ Your `app.py` file must be next to the `.gitignore`, `learn.json` or `Pipfile` files. | ||
+ You can also create the file using the terminal command: `$ touch app.py` and open it by double-clicking on the file name or typing `$ code app.py`. |
1 change: 1 addition & 0 deletions.learn/exercises/02.1-create-a-script/solution.hide.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("Hello World") |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.