Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7158282

Browse files
committed
Intermediate: Día 1
1 parent c0cf037 commit 7158282

18 files changed

+131
-18
lines changed

00_helloworld.py renamed to Basic/00_helloworld.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 1 (03/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1551265068
1+
# TODO: ACTUALIZAR!!
22

33
### Hola Mundo ###
44

01_variables.py renamed to Basic/01_variables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 1 (03/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1551265068
1+
# TODO: ACTUALIZAR!!
22

33
### Variables ###
44

02_operators.py renamed to Basic/02_operators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 2 (10/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1558018826
1+
# TODO: ACTUALIZAR!!
22

33
### Operadores Aritméticos ###
44

03_strings.py renamed to Basic/03_strings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 2 (10/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1558018826
1+
# TODO: ACTUALIZAR!!
22

33
### Strings ###
44

04_lists.py renamed to Basic/04_lists.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 3 (17/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1564719056
1+
# TODO: ACTUALIZAR!!
22

33
### Lists ###
44

05_tuples.py renamed to Basic/05_tuples.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 3 (17/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1564719056
1+
# TODO: ACTUALIZAR!!
22

33
### Tuples ###
44

06_sets.py renamed to Basic/06_sets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 4 (24/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1571410092
1+
# TODO: ACTUALIZAR!!
22

33
### Sets ###
44

07_dicts.py renamed to Basic/07_dicts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 4 (24/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1571410092
1+
# TODO: ACTUALIZAR!!
22

33
### Dictionaries ###
44

08_conditionals.py renamed to Basic/08_conditionals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 5 (31/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1578036618
1+
# TODO: ACTUALIZAR!!
22

33
### Conditionals ###
44

09_loops.py renamed to Basic/09_loops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 5 (31/08/22) en directo desde Twitch: https://www.twitch.tv/videos/1578036618
1+
# TODO: ACTUALIZAR!!
22

33
### Loops ###
44

10_functions.py renamed to Basic/10_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 6 (08/09/22) en directo desde Twitch: https://www.twitch.tv/videos/1585369113
1+
# TODO: ACTUALIZAR!!
22

33
### Functions ###
44

11_classes.py renamed to Basic/11_classes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 6 (08/09/22) en directo desde Twitch: https://www.twitch.tv/videos/1585369113
1+
# TODO: ACTUALIZAR!!
22

33
### Classes ###
44

12_exceptions.py renamed to Basic/12_exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 7 (15/09/22) en directo desde Twitch: https://www.twitch.tv/videos/1591757464
1+
# TODO: ACTUALIZAR!!
22

33
### Exception Handling ###
44

13_modules.py renamed to Basic/13_modules.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# TODO: ACTUALIZAR!!
2+
13
### Modules ###
24

35
import my_module

my_module.py renamed to Basic/my_module.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Clase 7 (15/09/22) en directo desde Twitch: https://www.twitch.tv/videos/1591757464
1+
# Clase en vídeo: https://youtu.be/Kp4Mvapo5kc?t=34583
22

33
### Módulo para pruebas ###
44

Intermediate/00_dates.py

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Clase en vídeo (06/10/2022): https://www.twitch.tv/videos/1611014007
2+
3+
### Dates ###
4+
5+
# Date time
6+
7+
from datetime import datetime
8+
9+
now = datetime.now()
10+
11+
def print_date(date):
12+
print(date.year)
13+
print(date.month)
14+
print(date.day)
15+
print(date.hour)
16+
print(date.minute)
17+
print(date.second)
18+
print(date.timestamp())
19+
20+
print_date(now)
21+
22+
year_2023 = datetime(2023, 1, 1)
23+
24+
print_date(year_2023)
25+
26+
# Time
27+
28+
from datetime import time
29+
30+
current_time = time(21, 6, 0)
31+
32+
print(current_time.hour)
33+
print(current_time.minute)
34+
print(current_time.second)
35+
36+
# Date
37+
38+
from datetime import date
39+
40+
current_date = date.today()
41+
42+
print(current_date.year)
43+
print(current_date.month)
44+
print(current_date.day)
45+
46+
current_date = date(2022, 10, 6)
47+
48+
print(current_date.year)
49+
print(current_date.month)
50+
print(current_date.day)
51+
52+
current_date = date(current_date.year, current_date.month + 1, current_date.day)
53+
54+
print(current_date.month)
55+
56+
# Operaciones con fechas
57+
58+
diff = year_2023 - now
59+
print(diff)
60+
61+
diff = year_2023.date() - current_date
62+
print(diff)
63+
64+
# Timedelta
65+
66+
from datetime import timedelta
67+
68+
start_timedelta = timedelta(200, 100, 100, weeks = 10)
69+
end_timedelta = timedelta(300, 100, 100, weeks = 13)
70+
71+
print(end_timedelta - start_timedelta)
72+
print(end_timedelta + start_timedelta)

Intermediate/01_list_comprehension.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Clase en vídeo (06/10/2022): https://www.twitch.tv/videos/1611014007
2+
3+
### List Comprehension ###
4+
5+
my_original_list = [0, 1, 2, 3, 4, 5, 6, 7]
6+
print(my_original_list)
7+
8+
my_range = range(8)
9+
print(list(my_range))
10+
11+
# Definición
12+
13+
my_list = [i + 1 for i in range(8)]
14+
print(my_list)
15+
16+
my_list = [i * 2 for i in range(8)]
17+
print(my_list)
18+
19+
my_list = [i * i for i in range(8)]
20+
print(my_list)
21+
22+
def sum_five(number):
23+
return number + 5
24+
25+
my_list = [sum_five(i) for i in range(8)]
26+
print(my_list)

README.md

+17-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
##### Si consideras útil esta actividad, apóyala haciendo "★ Star" en el repositorio. ¡Gracias!
99

1010
> ---
11-
> **🔴 PRÓXIMA CLASE: Jueves 6 de Octubre a las 20:00 (hora España)**
11+
> **🔴 PRÓXIMA CLASE: Jueves 13 de Octubre a las 20:00 (hora España)**
1212
>
13-
> Nos tomamos un pequeño descanso ya que estaré de viaje. ¡Aprovecha para practicar unos [retos de programación](https://retosdeprogramacion.com/semanales2022)!
13+
> Mientras, aprovecha para practicar unos [retos de programación](https://retosdeprogramacion.com/semanales2022) y así ir mejorando poco a poco.
1414
>
15-
> En [Discord](https://discord.gg/U3KjjfUfUJ?event=1020321837353287740) tienes creado un [evento](https://discord.gg/U3KjjfUfUJ?event=1020321837353287740) para que consultes la hora de tu país y añadas un recordatorio.
15+
> En [Discord](https://discord.gg/MsPMpmVJ?event=1027826275152318535) tienes creado un [evento](https://discord.gg/MsPMpmVJ?event=1027826275152318535) para que consultes la hora de tu país y añadas un recordatorio.
1616
>
1717
> *Finalizada la clase, se actualizará el repositorio con los nuevos recursos*
1818
>
@@ -24,6 +24,8 @@
2424

2525
Curso que agrupa todas las clases en directo que hacen referencia a los fundamentos de Python.
2626

27+
> Código: Directorio "Basic" en el proyecto
28+
2729
<a href="https://youtu.be/Kp4Mvapo5kc"><img src="http://i3.ytimg.com/vi/Kp4Mvapo5kc/maxresdefault.jpg" style="height: 50%; width:50%;"/></a>
2830

2931
* [Introducción](https://youtu.be/Kp4Mvapo5kc)
@@ -45,13 +47,24 @@ Curso que agrupa todas las clases en directo que hacen referencia a los fundamen
4547
* [Lección 15 - Módulos](https://youtu.be/Kp4Mvapo5kc?t=34583)
4648
* [Próximos pasos](https://youtu.be/Kp4Mvapo5kc?t=36390)
4749

50+
### Curso intermedio
51+
52+
Curso en el que continuamos aprendiendo Python desde sus bases, siguiendo la ruta de aprendizaje desde la última lección del curso de fundamentos.
53+
54+
> Código: Directorio "Intermediate" en el proyecto
55+
56+
* [Clase 06/10/22 - Dates y List Comprehension](https://www.twitch.tv/videos/1611014007)
57+
4858
## Información importante y preguntas frecuentes
4959

60+
* **¿Cómo está estructurado el proyecto y el código?**
61+
* Actualmente tienes dos directorios, "Basic" e "Intermediate", correspondientes a cómo están agrupadas las clases.
62+
5063
* **¿Las clases quedan grabadas?**
5164
* Todos los directos de Twitch están disponibles 60 días en la sección [vídeos](https://twitch.tv/mouredev/videos).
5265

5366
* **¿Se subirá a YouTube?**
54-
* No te preocupes, antes de que se cumplan los 60 días de Twitch, iré publicando las clases en YouTube editadas.
67+
* No te preocupes, antes de que se cumplan los 60 días de Twitch, iré publicando las clases agrupadas en YouTube.
5568

5669
* **¿Harás un curso?**
5770
* Agruparé lecciones en YouTube para crear cursos por nivel. Actualmente ya existe el de [fundamentos desde cero](https://youtu.be/Kp4Mvapo5kc).

0 commit comments

Comments
 (0)