- Notifications
You must be signed in to change notification settings - Fork 471
Instructions reviewed, #29
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits Select commit Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
# `14` Tu primer bucle o loop | ||
| ||
Si ejecutas este código verás una cuenta de 0 a 9 (caracteres blancos). | ||
| ||
1. Corrígelo para que cuente hasta 11,verás 101 en verde después. | ||
| ||
| ||
**¿Puedes corregirlo?** | ||
| ||
### :mag_right: Important: | ||
| ||
Hay una serie de ejercicios dedicados a listas y bucles o loops, te invitamos a realizar [esos](https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises) primero antes de continuar con el siguiente ejercicio. | ||
| ||
¡Y luego, regresa! :smiley. |
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
File renamed without changes.
File renamed without changes.
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,50 @@ | ||
# `15` Iterando con FizzBuzz | ||
| ||
Esta es una típica prueba de principiante que es exigida para las entrevistas en Google, Facebook y las demás grandes compañías de tecnología. | ||
| ||
| ||
## 📝 Instrucciones: | ||
| ||
1. Escribe el código necesario para imprimer en la consola todos los números del 1 al 100: | ||
| ||
+ Para múltiplos de 3, en lugar de imprimir el número, imprime "Fizz". | ||
| ||
+ Para múltiplos de 5, imprime "Buzz". | ||
| ||
+ Para números que son múltiplos de 3 y de 5, imprime "FizzBuzz". | ||
| ||
## Resultado esperado: | ||
| ||
```py | ||
| ||
1 | ||
2 | ||
Fizz | ||
4 | ||
Buzz | ||
Fizz | ||
7 | ||
8 | ||
Fizz | ||
Buzz | ||
11 | ||
Fizz | ||
13 | ||
14 | ||
FizzBuzz | ||
16 | ||
.... | ||
.... | ||
98 | ||
Fizz | ||
Buzz | ||
| ||
| ||
``` | ||
| ||
| ||
### :mag_right: Important: | ||
| ||
Hay una serie de ejercicios dedicados a listas y ciclos, te invitamos a realizar [esos](https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises) primero antes de continuar con el siguiente ejercicio. | ||
| ||
¡Y luego, regresa! :smiley. |
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,54 @@ | ||
--- | ||
tutorial: "https://www.youtube.com/watch?v=fw3ukgmlSwQ" | ||
--- | ||
| ||
# `15` Looping With FizzBuzz | ||
| ||
This is a typical beginner test that is required to complete interviews in Google, Facebook and all the other big tech unicorns. | ||
| ||
| ||
## 📝 Instructions: | ||
| ||
1. Write the code needed to print in the console all the numbers from 1 to 100: | ||
| ||
+ For multiples of 3, instead of the number, print "Fizz". | ||
| ||
+ For multiples of 5, print "Buzz". | ||
| ||
+ For numbers which are multiples of both 3 and 5, print "FizzBuzz". | ||
| ||
| ||
## Expected result: | ||
| ||
```py | ||
| ||
1 | ||
2 | ||
Fizz | ||
4 | ||
Buzz | ||
Fizz | ||
7 | ||
8 | ||
Fizz | ||
Buzz | ||
11 | ||
Fizz | ||
13 | ||
14 | ||
FizzBuzz | ||
16 | ||
.... | ||
.... | ||
98 | ||
Fizz | ||
Buzz | ||
| ||
| ||
``` | ||
| ||
### :mag_right: Important: | ||
| ||
There's a series of exercises dedicated to Lists and Loops, we encourage you to go and finish [those](https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises) after this exercise. ( | ||
| ||
And then, come back! :smiley:). |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
# `16` Colores aleatorios (ciclo) | ||
| ||
Hemos creado una función que devuelve un color basado en un número entre 1 y 4 (for any different number, it will return the color `black`). | ||
| ||
## 📝 Instrucciones: | ||
| ||
Digamos que somos profesores en un aula con 10 estudiantes y queremos asignar a CADA ESTUDIANTE un color aleatorio entre `red`(rojo), `yellow` (amarillo),`blue` (azul) y `green` (verde). | ||
| ||
(solo UN color POR estudiante) | ||
| ||
1. Cambia la función `get_allStudentColors` para que devuelva una lista con 10 colores, en donde cada elemento de la lista representa el color asignado a cada estudiante. | ||
| ||
## 💡 Pista: | ||
| ||
- Tienes 10 estudiantes, necesitar que el ciclo itere 10 veces. | ||
| ||
- En cada iteración, genera un número aleatorio entre 1 y 4 usando la función `randint()` que hemos visto en ejercicios anteriores. | ||
| ||
- Usa la función `get_color` en este ejercicio saber qué color le corresponde al número obtenido. | ||
| ||
- Llama (ejecuta) la funcion `get_allStudentColors` e imprime su resultado en la consola | ||
|
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,26 @@ | ||
--- | ||
tutorial: "https://www.youtube.com/watch?v=8zH3JT3AuAw" | ||
--- | ||
| ||
# `16` Random Colors (Loop) | ||
| ||
We have created a function that returns a color based on a number between 1 and 4 (for any different number, it will return the color `black`). | ||
| ||
## 📝 Instructions: | ||
| ||
Let's say that we are teachers in a 10 student classroom and we want to randomly assign ONE color, between `red`, `yellow`, `blue` and `green`, to EACH student. | ||
| ||
(only ONE color PER student) | ||
| ||
1. Change the function `get_allStudentColors` so it returns an list of 10 colors, were each item in the list represents the color assigned to each student. | ||
| ||
## 💡 Hint: | ||
| ||
- You have 10 students, you need to loop 10 times. | ||
| ||
- Each time you loop, generate a random number between 1-4 using the `randint()` function we saw on the last exercise. | ||
| ||
- Use the `get_color` function on this exercise to get the color name from the number you get. | ||
| ||
- call the function `get_allStudentColors` and print the result on the console. | ||
|
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
File renamed without changes.
12 changes: 8 additions & 4 deletions 12 exercises/22-Bottles-Of-Milk/README.es.md → exercises/19-Bottles-Of-Milk/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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.