Skip to content

Commit dd7129b

Browse files
committed
Corrección Roadmap 16 + Nuevo ejercicio 17
1 parent aeab82e commit dd7129b

File tree

3 files changed

+63
-3
lines changed

3 files changed

+63
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
## Corrección y próximo ejercicio
2929

30-
> #### Lunes 22 de Abril de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/8ke6EqSt?event=1227006064784969818)** por país y crea un **[recordatorio](https://discord.gg/8ke6EqSt?event=1227006064784969818)**
30+
> #### Lunes 29 de Abril de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/QGJ36ARZ?event=1229569230727413860)** por país y crea un **[recordatorio](https://discord.gg/QGJ36ARZ?event=1229569230727413860)**
3232
3333
## Roadmap
3434

@@ -50,7 +50,8 @@
5050
|13|[PRUEBAS UNITARIAS](./Roadmap/13%20-%20PRUEBAS%20UNITARIAS/ejercicio.md)|[📝](./Roadmap/13%20-%20PRUEBAS%20UNITARIAS/python/mouredev.py)|[▶️](https://youtu.be/3WFQ2grp0h0)|[👥](./Roadmap/13%20-%20PRUEBAS%20UNITARIAS/)
5151
|14|[FECHAS](./Roadmap/14%20-%20FECHAS/ejercicio.md)|[📝](./Roadmap/14%20-%20FECHAS/python/mouredev.py)|[▶️](https://youtu.be/EQIAhF7NNMI)|[👥](./Roadmap/14%20-%20FECHAS/)
5252
|15|[ASINCRONÍA](./Roadmap/15%20-%20ASINCRONÍA/ejercicio.md)|[📝](./Roadmap/15%20-%20ASINCRONÍA/python/mouredev.py)|[▶️](https://youtu.be/YA8Ssd3AUwA)|[👥](./Roadmap/15%20-%20ASINCRONÍA/)
53-
|16|[EXPRESIONES REGULARES](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/ejercicio.md)|[🗓️ 22/04/24](https://discord.gg/8ke6EqSt?event=1227006064784969818)||[👥](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/)
53+
|16|[EXPRESIONES REGULARES](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/ejercicio.md)|[📝](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/python/mouredev.py)||[👥](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/)
54+
|17|[ITERACIONES](./Roadmap/17%20-%20ITERACIONES/ejercicio.md)|[🗓️ 29/04/24](https://discord.gg/QGJ36ARZ?event=1229569230727413860)||[👥](./Roadmap/17%20-%20ITERACIONES/)
5455

5556
## Instrucciones
5657

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import re
2+
3+
"""
4+
Ejercicio
5+
"""
6+
7+
8+
def find_numbers(text: str) -> list:
9+
return re.findall(r"\d+", text)
10+
11+
12+
print(find_numbers("Este es el ejercicio 16 publicado 15/04/2024."))
13+
14+
15+
"""
16+
Extra
17+
"""
18+
19+
20+
def validate_email(email: str) -> bool:
21+
return bool(re.match(r"^[\w.+-]+@[\w]+\.[a-zA-Z]+$", email))
22+
23+
24+
print(validate_email("mouredev@gmail.com"))
25+
26+
27+
def validate_phone(phone: str) -> bool:
28+
return bool(re.match(r"^\+?[\d\s]{3,}$", phone))
29+
30+
31+
print(validate_phone("+34 901 65 89 04"))
32+
33+
34+
def validate_url(url: str) -> bool:
35+
return bool(re.match(r"^http[s]?://(www.)?[\w]+\.[a-zA-Z]{2,}$", url))
36+
37+
38+
print(validate_url("http://www.moure.dev"))
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# #17 ITERACIONES
2+
> #### Dificultad: Fácil | Publicación: 22/04/24 | Corrección: 29/04/24
3+
4+
## Ejercicio
5+
6+
```
7+
/*
8+
* EJERCICIO:
9+
* Utilizando tu lenguaje, emplea 3 mecanismos diferentes para imprimir
10+
* números del 1 al 10 mediante iteración.
11+
*
12+
* DIFICULTAD EXTRA (opcional):
13+
* Escribe el mayor número de mecanismos que posea tu lenguaje
14+
* para iterar valores. ¿Eres capaz de utilizar 5? ¿Y 10?
15+
*/
16+
```
17+
#### Tienes toda la información extendida sobre el roadmap de retos de programación en **[retosdeprogramacion.com/roadmap](https://retosdeprogramacion.com/roadmap)**.
18+
19+
Sigue las **[instrucciones](../../README.md)**, consulta las correcciones y aporta la tuya propia utilizando el lenguaje de programación que quieras.
20+
21+
> Recuerda que cada semana se publica un nuevo ejercicio y se corrige el de la semana anterior en directo desde **[Twitch](https://twitch.tv/mouredev)**. Tienes el horario en la sección "eventos" del servidor de **[Discord](https://discord.gg/mouredev)**.

0 commit comments

Comments
 (0)