Skip to content

Commit 4b6b8f1

Browse files
committed
Intermediate: Día 6 + Anuncio nuevo curso
1 parent cf5cdb9 commit 4b6b8f1

File tree

8 files changed

+103
-3
lines changed

8 files changed

+103
-3
lines changed

Intermediate/06_file_handling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
#os.remove("Intermediate/my_file.txt")
2929

30+
# Clase en vídeo (03/11/22): https://www.twitch.tv/videos/1642512950
31+
3032
# .json file
3133

3234
import json
@@ -76,4 +78,5 @@
7678
# .xml file
7779

7880
import xml
81+
# ¿Te atreves a practicar cómo trabajar con este tipo de ficheros?
7982

Intermediate/07_regular_expressions.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,37 @@
4444

4545
print(re.sub("[l|L]ección", "LECCIÓN", my_string))
4646
print(re.sub("Expresiones Regulares", "RegEx", my_string))
47+
48+
# Clase en vídeo (09/11/22): https://www.twitch.tv/videos/1648023317
49+
50+
### Regular Expressions Patterns ###
51+
52+
# Para aprender y validar expresiones regulares: https://regex101.com
53+
54+
pattern = r"[lL]ección"
55+
print(re.findall(pattern, my_string))
56+
57+
pattern = r"[lL]ección|Expresiones"
58+
print(re.findall(pattern, my_string))
59+
60+
pattern = r"[0-9]"
61+
print(re.findall(pattern, my_string))
62+
print(re.search(pattern, my_string))
63+
64+
pattern = r"\d"
65+
print(re.findall(pattern, my_string))
66+
67+
pattern = r"\D"
68+
print(re.findall(pattern, my_string))
69+
70+
pattern = r"[l].*"
71+
print(re.findall(pattern, my_string))
72+
73+
email = "mouredev@mouredev.com"
74+
pattern = r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z-.]+$"
75+
print(re.match(pattern, email))
76+
print(re.search(pattern, email))
77+
print(re.findall(pattern, email))
78+
79+
email = "mouredev@mouredev.com.mx"
80+
print(re.findall(pattern, email))
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Clase en vídeo (09/11/22): https://www.twitch.tv/videos/1648023317
2+
3+
### Python Package Manager ###
4+
5+
# PIP https://pypi.org
6+
7+
# pip install pip
8+
# pip --version
9+
10+
# pip install numpy
11+
import numpy
12+
13+
print(numpy.version.version)
14+
15+
numpy_array = numpy.array([35, 24, 62, 52, 30, 30, 17])
16+
print(type(numpy_array))
17+
18+
print(numpy_array * 2)
19+
20+
# pip install pandas
21+
import pandas
22+
23+
# pip list
24+
# pip uninstall pandas
25+
# pip show numpy
26+
27+
# pip install requests
28+
import requests
29+
30+
response = requests.get("https://pokeapi.co/api/v2/pokemon?limit=151")
31+
print(response)
32+
print(response.status_code)
33+
print(response.json())
34+
35+
# Arithmetics Package
36+
37+
from mypackage import arithmetics
38+
39+
print(arithmetics.sum_two_values(1, 4))

Intermediate/mypackage/__init__.py

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

Intermediate/mypackage/arithmetics.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Clase en vídeo (09/11/22): https://www.twitch.tv/videos/1648023317
2+
3+
### Arithmetics ###
4+
5+
def sum_two_values (first_value, second_value):
6+
return first_value + second_value

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,23 @@
88
##### Si consideras útil esta actividad, apóyala haciendo "★ Star" en el repositorio. ¡Gracias!
99

1010
> ---
11-
> **🔴 PRÓXIMA CLASE: Miércoles 9 de Noviembre a las 20:00 (hora España)**
11+
> **🚨 ¡ANUNCIO IMPORTANTE!**
1212
>
13-
> Mientras, aprovecha para practicar unos [retos de programación](https://retosdeprogramacion.com/semanales2022) y así ir mejorando poco a poco.
13+
> Voy a crear un CURSO DESDE CERO gratis para aprender PYTHON en BACKEND.
14+
>
15+
> Veremos temas como:
16+
>
17+
> * API REST
18+
> * CRUD
19+
> * Autenticación
20+
> * Base de datos
21+
> * Despliegue en servidor
22+
>
23+
> **🔴 INICIO DEL NUEVO CURSO EN DIRECTO: Jueves 24 de Noviembre a las 20:00 (hora España)**
24+
25+
> 🗓 En [Discord](https://discord.gg/mouredev) tienes creado un [evento](https://discord.gg/U3KjjfUfUJ?event=1040586282327347293) para que consultes la hora de tu país y añadas un recordatorio.
1426
>
15-
> En [Discord](https://discord.gg/RemDcUaW?event=1038058766370877530) tienes creado un [evento](https://discord.gg/RemDcUaW?event=1038058766370877530) para que consultes la hora de tu país y añadas un recordatorio.
27+
> Mientras, aprovecha para practicar unos [retos de programación](https://retosdeprogramacion.com/semanales2022) y así ir mejorando poco a poco.
1628
>
1729
> *Finalizada la clase, se actualizará el repositorio con los nuevos recursos*
1830
>
@@ -58,6 +70,9 @@ Curso en el que continuamos aprendiendo Python desde sus bases, siguiendo la rut
5870
* [Clase 19/10/22 - Lambdas y Funciones de orden superior](https://www.twitch.tv/videos/1628654998)
5971
* [Clase 25/10/22 - Tipos de error y manejo de ficheros .txt](https://www.twitch.tv/videos/1634818287)
6072
* [Clase 03/11/22 - Manejo de ficheros .json/.cvs y Expresiones Regulares](https://www.twitch.tv/videos/1642512950)
73+
* [Clase 09/11/22 - Patrones de Expresiones Regulares y Manejo de paquetes ](https://www.twitch.tv/videos/1648023317)
74+
75+
**Bloque finalizado. Próximamente lo publicaré en un único vídeo editado en YouTube.**
6176

6277
## Información importante y preguntas frecuentes
6378

@@ -67,6 +82,9 @@ Curso en el que continuamos aprendiendo Python desde sus bases, siguiendo la rut
6782
* **¿Las clases quedan grabadas?**
6883
* Todos los directos de Twitch están disponibles 60 días en la sección [vídeos](https://twitch.tv/mouredev/videos).
6984

85+
* **¿Puedo asistir a las clases en directo si no he visto las anteriores?**
86+
* Sí. Son clases independientes en las que hablo de nuevo de conceptos anteriores para que se entiendan de nuevo. Por supuesto, es recomendable que poco a poco visualices las clases anteriores.
87+
7088
* **¿Se subirá a YouTube?**
7189
* No te preocupes, antes de que se cumplan los 60 días de Twitch, iré publicando las clases agrupadas en YouTube.
7290

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy