Skip to content

Práctica de list & loops in python #132

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

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Practicando listas y bucles
  • Loading branch information
danderi committed Nov 11, 2024
commit 59684293c05a183c56ee0fc56fecba65f9644d2e
1 change: 1 addition & 0 deletions .learn/resets/01-hello-world/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Your code here
7 changes: 7 additions & 0 deletions .learn/resets/01.1-Access-and-Retrieve/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
my_list = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']

# 1. Print the 3rd item here

# 2. Change the value of 'thursday' to None

# 3. Print that position now here
5 changes: 5 additions & 0 deletions .learn/resets/01.2-Retrieve-items/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
my_list = [4,5,734,43,45,100,4,56,23,67,23,58,45,3,100,4,56,23]

# Print in the console the 1st element on the list

# Print in the console the 4th element on the list
1 change: 1 addition & 0 deletions exercises/01-hello-world/app.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Your code here
print("Hello World!")
5 changes: 3 additions & 2 deletions exercises/01.1-Access-and-Retrieve/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
my_list = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']

# 1. Print the 3rd item here

print(my_list[2])
# 2. Change the value of 'thursday' to None

my_list[4] = None
# 3. Print that position now here
print(my_list[4])
3 changes: 2 additions & 1 deletion exercises/01.2-Retrieve-items/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
my_list = [4,5,734,43,45,100,4,56,23,67,23,58,45,3,100,4,56,23]

# Print in the console the 1st element on the list

print(my_list[0])
# Print in the console the 4th element on the list
print(my_list[3])