Skip to content

Commit 5968429

Browse files
committed
Practicando listas y bucles
1 parent 2c38d01 commit 5968429

File tree

6 files changed

+19
-3
lines changed

6 files changed

+19
-3
lines changed

.learn/resets/01-hello-world/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Your code here
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
my_list = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
2+
3+
# 1. Print the 3rd item here
4+
5+
# 2. Change the value of 'thursday' to None
6+
7+
# 3. Print that position now here
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
my_list = [4,5,734,43,45,100,4,56,23,67,23,58,45,3,100,4,56,23]
2+
3+
# Print in the console the 1st element on the list
4+
5+
# Print in the console the 4th element on the list

exercises/01-hello-world/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# Your code here
2+
print("Hello World!")
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
my_list = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
22

33
# 1. Print the 3rd item here
4-
4+
print(my_list[2])
55
# 2. Change the value of 'thursday' to None
6-
6+
my_list[4] = None
77
# 3. Print that position now here
8+
print(my_list[4])

exercises/01.2-Retrieve-items/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
my_list = [4,5,734,43,45,100,4,56,23,67,23,58,45,3,100,4,56,23]
22

33
# Print in the console the 1st element on the list
4-
4+
print(my_list[0])
55
# Print in the console the 4th element on the list
6+
print(my_list[3])

0 commit comments

Comments
 (0)