From 5ef5ffb5c27929acc20bad2d8731a8bc8c1324af Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:59:03 +0000 Subject: [PATCH 1/2] cambiar nombres y numeros de carpetas y archivos para mas coherencia --- .learn/resets/01-hello-world/app.py | 1 + .learn/resets/01.1-Access-and-Retrieve/app.py | 7 +++++++ .learn/resets/01.2-Retrieve-items/app.py | 5 +++++ .learn/resets/01.3-Print-the-last-one/app.py | 16 ++++++++++++++++ .learn/resets/02-Loop-list/app.py | 4 ++++ .learn/resets/05.1-sum_odd_items/app.py | 3 +++ .../resets/06-Print_by_condition}/app.py | 0 .../README.es.md | 2 +- .../README.md | 2 +- .../app.py | 0 .../solution.hide.py | 0 .../test.py | 0 .../README.es.md | 2 +- .../README.md | 2 +- .../app.py | 0 .../solution.hide.py | 0 .../test.py | 0 .../README.es.md | 0 .../README.md | 0 exercises/06-Print_by_condition/app.py | 6 ++++++ .../solution.hide.py | 0 .../test.py | 0 .../README.es.md | 2 +- .../README.md | 2 +- .../app.py | 0 .../solution.hide.py | 0 .../test.py | 0 27 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 .learn/resets/01-hello-world/app.py create mode 100644 .learn/resets/01.1-Access-and-Retrieve/app.py create mode 100644 .learn/resets/01.2-Retrieve-items/app.py create mode 100644 .learn/resets/01.3-Print-the-last-one/app.py create mode 100644 .learn/resets/02-Loop-list/app.py create mode 100644 .learn/resets/05.1-sum_odd_items/app.py rename {exercises/06-forEach_loop => .learn/resets/06-Print_by_condition}/app.py (100%) rename exercises/{01.5-loop-seventeen => 01.4-loop-seventeen}/README.es.md (97%) rename exercises/{01.5-loop-seventeen => 01.4-loop-seventeen}/README.md (97%) rename exercises/{01.5-loop-seventeen => 01.4-loop-seventeen}/app.py (100%) rename exercises/{01.5-loop-seventeen => 01.4-loop-seventeen}/solution.hide.py (100%) rename exercises/{01.5-loop-seventeen => 01.4-loop-seventeen}/test.py (100%) rename exercises/{01.4-Add-item-to-list => 01.5-Add-item-to-list}/README.es.md (90%) rename exercises/{01.4-Add-item-to-list => 01.5-Add-item-to-list}/README.md (90%) rename exercises/{01.4-Add-item-to-list => 01.5-Add-item-to-list}/app.py (100%) rename exercises/{01.4-Add-item-to-list => 01.5-Add-item-to-list}/solution.hide.py (100%) rename exercises/{01.4-Add-item-to-list => 01.5-Add-item-to-list}/test.py (100%) rename exercises/{06-forEach_loop => 06-Print_by_condition}/README.es.md (100%) rename exercises/{06-forEach_loop => 06-Print_by_condition}/README.md (100%) create mode 100644 exercises/06-Print_by_condition/app.py rename exercises/{06-forEach_loop => 06-Print_by_condition}/solution.hide.py (100%) rename exercises/{06-forEach_loop => 06-Print_by_condition}/test.py (100%) rename exercises/{14.2-letter_counter => 14.1-letter_counter}/README.es.md (96%) rename exercises/{14.2-letter_counter => 14.1-letter_counter}/README.md (96%) rename exercises/{14.2-letter_counter => 14.1-letter_counter}/app.py (100%) rename exercises/{14.2-letter_counter => 14.1-letter_counter}/solution.hide.py (100%) rename exercises/{14.2-letter_counter => 14.1-letter_counter}/test.py (100%) diff --git a/.learn/resets/01-hello-world/app.py b/.learn/resets/01-hello-world/app.py new file mode 100644 index 00000000..fce62c1d --- /dev/null +++ b/.learn/resets/01-hello-world/app.py @@ -0,0 +1 @@ +# Your code here diff --git a/.learn/resets/01.1-Access-and-Retrieve/app.py b/.learn/resets/01.1-Access-and-Retrieve/app.py new file mode 100644 index 00000000..250261b7 --- /dev/null +++ b/.learn/resets/01.1-Access-and-Retrieve/app.py @@ -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 diff --git a/.learn/resets/01.2-Retrieve-items/app.py b/.learn/resets/01.2-Retrieve-items/app.py new file mode 100644 index 00000000..9208b3cd --- /dev/null +++ b/.learn/resets/01.2-Retrieve-items/app.py @@ -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 diff --git a/.learn/resets/01.3-Print-the-last-one/app.py b/.learn/resets/01.3-Print-the-last-one/app.py new file mode 100644 index 00000000..68fa5b25 --- /dev/null +++ b/.learn/resets/01.3-Print-the-last-one/app.py @@ -0,0 +1,16 @@ +# import the random package here "import random" +import random + +def generate_random_list(): + aux_list = [] + randonlength = random.randint(1, 100) + + for i in range(randonlength): + aux_list.append(randonlength) + i += i + return aux_list + +my_stupid_list = generate_random_list() + +# Write your code below this comment, good luck! + diff --git a/.learn/resets/02-Loop-list/app.py b/.learn/resets/02-Loop-list/app.py new file mode 100644 index 00000000..13b3228b --- /dev/null +++ b/.learn/resets/02-Loop-list/app.py @@ -0,0 +1,4 @@ +my_list = [232,32,1,4,55,4,3,32,3,24,5,5,5,34,2,35,5365743,52,34,3,55] + +# Your code here +print(my_list[0]) diff --git a/.learn/resets/05.1-sum_odd_items/app.py b/.learn/resets/05.1-sum_odd_items/app.py new file mode 100644 index 00000000..c6f86a84 --- /dev/null +++ b/.learn/resets/05.1-sum_odd_items/app.py @@ -0,0 +1,3 @@ +my_list = [4,5,734,43,45,100,4,56,23,67,23,58,45] + +# Your code here diff --git a/exercises/06-forEach_loop/app.py b/.learn/resets/06-Print_by_condition/app.py similarity index 100% rename from exercises/06-forEach_loop/app.py rename to .learn/resets/06-Print_by_condition/app.py diff --git a/exercises/01.5-loop-seventeen/README.es.md b/exercises/01.4-loop-seventeen/README.es.md similarity index 97% rename from exercises/01.5-loop-seventeen/README.es.md rename to exercises/01.4-loop-seventeen/README.es.md index 0a3fc8e5..7d32a37e 100644 --- a/exercises/01.5-loop-seventeen/README.es.md +++ b/exercises/01.4-loop-seventeen/README.es.md @@ -1,4 +1,4 @@ -# `01.5` Loop from 1 to 17 +# `01.4` Loop from 1 to 17 Para iterar un número específico de veces, podemos usar: diff --git a/exercises/01.5-loop-seventeen/README.md b/exercises/01.4-loop-seventeen/README.md similarity index 97% rename from exercises/01.5-loop-seventeen/README.md rename to exercises/01.4-loop-seventeen/README.md index 400ab2f8..c2fa80e6 100644 --- a/exercises/01.5-loop-seventeen/README.md +++ b/exercises/01.4-loop-seventeen/README.md @@ -2,7 +2,7 @@ tutorial: "https://www.youtube.com/watch?v=qO3ZNWrkeGg" --- -# `01.5` Loop from 1 to 17 +# `01.4` Loop from 1 to 17 To loop a specific number of times, we can use: diff --git a/exercises/01.5-loop-seventeen/app.py b/exercises/01.4-loop-seventeen/app.py similarity index 100% rename from exercises/01.5-loop-seventeen/app.py rename to exercises/01.4-loop-seventeen/app.py diff --git a/exercises/01.5-loop-seventeen/solution.hide.py b/exercises/01.4-loop-seventeen/solution.hide.py similarity index 100% rename from exercises/01.5-loop-seventeen/solution.hide.py rename to exercises/01.4-loop-seventeen/solution.hide.py diff --git a/exercises/01.5-loop-seventeen/test.py b/exercises/01.4-loop-seventeen/test.py similarity index 100% rename from exercises/01.5-loop-seventeen/test.py rename to exercises/01.4-loop-seventeen/test.py diff --git a/exercises/01.4-Add-item-to-list/README.es.md b/exercises/01.5-Add-item-to-list/README.es.md similarity index 90% rename from exercises/01.4-Add-item-to-list/README.es.md rename to exercises/01.5-Add-item-to-list/README.es.md index ae3f421b..586cc0bf 100644 --- a/exercises/01.4-Add-item-to-list/README.es.md +++ b/exercises/01.5-Add-item-to-list/README.es.md @@ -1,4 +1,4 @@ -# `01.4` Add items to the list +# `01.5` Add items to the list ## 📝 Instrucciones: diff --git a/exercises/01.4-Add-item-to-list/README.md b/exercises/01.5-Add-item-to-list/README.md similarity index 90% rename from exercises/01.4-Add-item-to-list/README.md rename to exercises/01.5-Add-item-to-list/README.md index 6c946925..d8e37185 100644 --- a/exercises/01.4-Add-item-to-list/README.md +++ b/exercises/01.5-Add-item-to-list/README.md @@ -2,7 +2,7 @@ tutorial: "https://www.youtube.com/watch?v=blkw9_c-s8M" --- -# `01.4` Add items to the list +# `01.5` Add items to the list ## 📝 Instructions: diff --git a/exercises/01.4-Add-item-to-list/app.py b/exercises/01.5-Add-item-to-list/app.py similarity index 100% rename from exercises/01.4-Add-item-to-list/app.py rename to exercises/01.5-Add-item-to-list/app.py diff --git a/exercises/01.4-Add-item-to-list/solution.hide.py b/exercises/01.5-Add-item-to-list/solution.hide.py similarity index 100% rename from exercises/01.4-Add-item-to-list/solution.hide.py rename to exercises/01.5-Add-item-to-list/solution.hide.py diff --git a/exercises/01.4-Add-item-to-list/test.py b/exercises/01.5-Add-item-to-list/test.py similarity index 100% rename from exercises/01.4-Add-item-to-list/test.py rename to exercises/01.5-Add-item-to-list/test.py diff --git a/exercises/06-forEach_loop/README.es.md b/exercises/06-Print_by_condition/README.es.md similarity index 100% rename from exercises/06-forEach_loop/README.es.md rename to exercises/06-Print_by_condition/README.es.md diff --git a/exercises/06-forEach_loop/README.md b/exercises/06-Print_by_condition/README.md similarity index 100% rename from exercises/06-forEach_loop/README.md rename to exercises/06-Print_by_condition/README.md diff --git a/exercises/06-Print_by_condition/app.py b/exercises/06-Print_by_condition/app.py new file mode 100644 index 00000000..de6e8f61 --- /dev/null +++ b/exercises/06-Print_by_condition/app.py @@ -0,0 +1,6 @@ +my_list = [3344,34334,454543,342534,4563456,3445,23455,234,262,2335,43323,4356,345,4545,452,345,434,36,345,4334,5454,345,4352,23,365,345,47,63,425,6578759,768,834,754,35,32,445,453456,56,7536867,3884526,4234,35353245,53244523,566785,7547,743,4324,523472634,26665,63432,54645,32,453625,7568,5669576,754,64356,542644,35,243,371,3251,351223,13231243,734,856,56,53,234342,56,545343] + + +for i in my_list: + # The magic happens here + diff --git a/exercises/06-forEach_loop/solution.hide.py b/exercises/06-Print_by_condition/solution.hide.py similarity index 100% rename from exercises/06-forEach_loop/solution.hide.py rename to exercises/06-Print_by_condition/solution.hide.py diff --git a/exercises/06-forEach_loop/test.py b/exercises/06-Print_by_condition/test.py similarity index 100% rename from exercises/06-forEach_loop/test.py rename to exercises/06-Print_by_condition/test.py diff --git a/exercises/14.2-letter_counter/README.es.md b/exercises/14.1-letter_counter/README.es.md similarity index 96% rename from exercises/14.2-letter_counter/README.es.md rename to exercises/14.1-letter_counter/README.es.md index 83c183d0..80c52038 100644 --- a/exercises/14.2-letter_counter/README.es.md +++ b/exercises/14.1-letter_counter/README.es.md @@ -1,4 +1,4 @@ -# `14.2` Letter counter +# `14.1` Letter counter ## 📝 Instrucciones: diff --git a/exercises/14.2-letter_counter/README.md b/exercises/14.1-letter_counter/README.md similarity index 96% rename from exercises/14.2-letter_counter/README.md rename to exercises/14.1-letter_counter/README.md index 3a19e30b..37fa005d 100644 --- a/exercises/14.2-letter_counter/README.md +++ b/exercises/14.1-letter_counter/README.md @@ -1,4 +1,4 @@ -# `14.2` Letter counter +# `14.1` Letter counter ## 📝 Instructions: diff --git a/exercises/14.2-letter_counter/app.py b/exercises/14.1-letter_counter/app.py similarity index 100% rename from exercises/14.2-letter_counter/app.py rename to exercises/14.1-letter_counter/app.py diff --git a/exercises/14.2-letter_counter/solution.hide.py b/exercises/14.1-letter_counter/solution.hide.py similarity index 100% rename from exercises/14.2-letter_counter/solution.hide.py rename to exercises/14.1-letter_counter/solution.hide.py diff --git a/exercises/14.2-letter_counter/test.py b/exercises/14.1-letter_counter/test.py similarity index 100% rename from exercises/14.2-letter_counter/test.py rename to exercises/14.1-letter_counter/test.py From 5cd96074c48cd18e2d3ef4f19facb7985dd61f09 Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:31:09 +0000 Subject: [PATCH 2/2] learnpack clean --- .learn/resets/01-hello-world/app.py | 1 - .learn/resets/01.1-Access-and-Retrieve/app.py | 7 ------- .learn/resets/01.2-Retrieve-items/app.py | 5 ----- .learn/resets/01.3-Print-the-last-one/app.py | 16 ---------------- .learn/resets/02-Loop-list/app.py | 4 ---- .learn/resets/05.1-sum_odd_items/app.py | 3 --- .learn/resets/06-Print_by_condition/app.py | 6 ------ 7 files changed, 42 deletions(-) delete mode 100644 .learn/resets/01-hello-world/app.py delete mode 100644 .learn/resets/01.1-Access-and-Retrieve/app.py delete mode 100644 .learn/resets/01.2-Retrieve-items/app.py delete mode 100644 .learn/resets/01.3-Print-the-last-one/app.py delete mode 100644 .learn/resets/02-Loop-list/app.py delete mode 100644 .learn/resets/05.1-sum_odd_items/app.py delete mode 100644 .learn/resets/06-Print_by_condition/app.py diff --git a/.learn/resets/01-hello-world/app.py b/.learn/resets/01-hello-world/app.py deleted file mode 100644 index fce62c1d..00000000 --- a/.learn/resets/01-hello-world/app.py +++ /dev/null @@ -1 +0,0 @@ -# Your code here diff --git a/.learn/resets/01.1-Access-and-Retrieve/app.py b/.learn/resets/01.1-Access-and-Retrieve/app.py deleted file mode 100644 index 250261b7..00000000 --- a/.learn/resets/01.1-Access-and-Retrieve/app.py +++ /dev/null @@ -1,7 +0,0 @@ -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 diff --git a/.learn/resets/01.2-Retrieve-items/app.py b/.learn/resets/01.2-Retrieve-items/app.py deleted file mode 100644 index 9208b3cd..00000000 --- a/.learn/resets/01.2-Retrieve-items/app.py +++ /dev/null @@ -1,5 +0,0 @@ -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 diff --git a/.learn/resets/01.3-Print-the-last-one/app.py b/.learn/resets/01.3-Print-the-last-one/app.py deleted file mode 100644 index 68fa5b25..00000000 --- a/.learn/resets/01.3-Print-the-last-one/app.py +++ /dev/null @@ -1,16 +0,0 @@ -# import the random package here "import random" -import random - -def generate_random_list(): - aux_list = [] - randonlength = random.randint(1, 100) - - for i in range(randonlength): - aux_list.append(randonlength) - i += i - return aux_list - -my_stupid_list = generate_random_list() - -# Write your code below this comment, good luck! - diff --git a/.learn/resets/02-Loop-list/app.py b/.learn/resets/02-Loop-list/app.py deleted file mode 100644 index 13b3228b..00000000 --- a/.learn/resets/02-Loop-list/app.py +++ /dev/null @@ -1,4 +0,0 @@ -my_list = [232,32,1,4,55,4,3,32,3,24,5,5,5,34,2,35,5365743,52,34,3,55] - -# Your code here -print(my_list[0]) diff --git a/.learn/resets/05.1-sum_odd_items/app.py b/.learn/resets/05.1-sum_odd_items/app.py deleted file mode 100644 index c6f86a84..00000000 --- a/.learn/resets/05.1-sum_odd_items/app.py +++ /dev/null @@ -1,3 +0,0 @@ -my_list = [4,5,734,43,45,100,4,56,23,67,23,58,45] - -# Your code here diff --git a/.learn/resets/06-Print_by_condition/app.py b/.learn/resets/06-Print_by_condition/app.py deleted file mode 100644 index de6e8f61..00000000 --- a/.learn/resets/06-Print_by_condition/app.py +++ /dev/null @@ -1,6 +0,0 @@ -my_list = [3344,34334,454543,342534,4563456,3445,23455,234,262,2335,43323,4356,345,4545,452,345,434,36,345,4334,5454,345,4352,23,365,345,47,63,425,6578759,768,834,754,35,32,445,453456,56,7536867,3884526,4234,35353245,53244523,566785,7547,743,4324,523472634,26665,63432,54645,32,453625,7568,5669576,754,64356,542644,35,243,371,3251,351223,13231243,734,856,56,53,234342,56,545343] - - -for i in my_list: - # The magic happens here -