Skip to content

Commit c634f66

Browse files
committed
ejr
1 parent 2c38d01 commit c634f66

File tree

90 files changed

+544
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+544
-24
lines changed

Diff for: .learn/resets/01-hello-world/app.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Your code here

Diff for: .learn/resets/01.1-Access-and-Retrieve/app.py

+7
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

Diff for: .learn/resets/01.2-Retrieve-items/app.py

+5
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

Diff for: .learn/resets/01.3-Print-the-last-one/app.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# import the random package here "import random"
2+
import random
3+
4+
def generate_random_list():
5+
aux_list = []
6+
randonlength = random.randint(1, 100)
7+
8+
for i in range(randonlength):
9+
aux_list.append(randonlength)
10+
i += i
11+
return aux_list
12+
13+
my_stupid_list = generate_random_list()
14+
15+
# Write your code below this comment, good luck!
16+

Diff for: .learn/resets/01.4-loop-seventeen/app.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Your code here, have fun:

Diff for: .learn/resets/01.5-Add-item-to-list/app.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Remember to import random function here
2+
3+
my_list = [4, 5, 734, 43, 45]
4+
5+
# The magic goes below

Diff for: .learn/resets/02-Loop-list/app.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
my_list = [232,32,1,4,55,4,3,32,3,24,5,5,5,34,2,35,5365743,52,34,3,55]
2+
3+
# Your code here
4+
print(my_list[0])

Diff for: .learn/resets/02.1-Loop-from-the-top/app.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
my_sample_list = [3423,5,4,47889,654,8,867543,23,48,56432,55,23,25,12]
2+
3+
# Modify the loop below to print from end to start
4+
5+
for i in range(0, len(my_sample_list)):
6+
print(my_sample_list[i])

Diff for: .learn/resets/02.2-Loop-adding-two/app.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
my_sample_list = [3423,5,4,47889,654,8,867543,23,48,56432,55,23,25,12]
2+
3+
# Your code below, don't change anything above
4+
5+
for i in range(0, len(my_sample_list), 1):
6+
print(my_sample_list[i])
7+
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
my_list = [3423,5,4,47889,654,8,867543,23,48,56432,55,23,25,12]
2+
3+
# Your code here
4+
inicial_value = 0
5+
stop_value = 0
6+
increase_value = 0
7+
8+
for i in range(inicial_value, stop_value, increase_value):
9+
print(my_list[i])

Diff for: .learn/resets/02.4-One_last_looping/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
names = ['Esmeralda','Kiko','Ruth','Lebron','Pedro','Maria','Lou','Fernando','Cesco','Bart','Annie']
2+
3+
# Your code here

Diff for: .learn/resets/02.5-Finding_wally/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
people = ['Lebron','Aaliyah','Diamond','Dominique','Aliyah','Jazmin','Darnell','Hatfield','Hawkins','Hayden','Hayes','Haynes','Hays','Head','Heath','Hebert','Henderson','Hendricks','Hendrix','Henry','Hensley','Henson','Herman','Hernandez','Herrera','Herring','Hess','Hester','Hewitt','Hickman','Hicks','Higgins','Hill','Hines','Hinton','Hobbs','Hodge','Hodges','Hoffman','Hogan','Holcomb','Holden','Holder','Holland','Holloway','Holman','Holmes','Holt','Hood','Hooper','Hoover','Hopkins','Hopper','Horn','Horne','Horton','House','Houston','Howard','Howe','Howell','Hubbard','Huber','Hudson','Huff','Wally','Hughes','Hull','Humphrey','Hunt','Hunter','Hurley','Hurst','Hutchinson','Hyde','Ingram','Irwin','Jackson','Jacobs','Jacobson','James','Jarvis','Jefferson','Jenkins','Jennings','Jensen','Jimenez','Johns','Johnson','Johnston','Jones','Jordan','Joseph','Joyce','Joyner','Juarez','Justice','Kane','Kaufman','Keith','Keller','Kelley','Kelly','Kemp','Kennedy','Kent','Kerr','Key','Kidd','Kim','King','Kinney','Kirby','Kirk','Kirkland','Klein','Kline','Knapp','Knight','Knowles','Knox','Koch','Kramer','Lamb','Lambert','Lancaster','Landry','Lane','Lang','Langley','Lara','Larsen','Larson','Lawrence','Lawson','Le','Leach','Leblanc','Lee','Leon','Leonard','Lester','Levine','Levy','Lewis','Lindsay','Lindsey','Little','Livingston','Lloyd','Logan','Long','Lopez','Lott','Love','Lowe','Lowery','Lucas','Luna','Lynch','Lynn','Lyons','Macdonald','Macias','Mack','Madden','Maddox','Maldonado','Malone','Mann','Manning','Marks','Marquez','Marsh','Marshall','Martin','Martinez','Mason','Massey','Mathews','Mathis','Matthews','Maxwell','May','Mayer','Maynard','Mayo','Mays','Mcbride','Mccall','Mccarthy','Mccarty','Mcclain','Mcclure','Mcconnell','Mccormick','Mccoy','Mccray','Wally','Mcdaniel','Mcdonald','Mcdowell','Mcfadden','Mcfarland','Mcgee','Mcgowan','Mcguire','Mcintosh','Mcintyre','Mckay','Mckee','Mckenzie','Mckinney','Mcknight','Mclaughlin','Mclean','Mcleod','Mcmahon','Mcmillan','Mcneil','Mcpherson','Meadows','Medina','Mejia','Melendez','Melton','Mendez','Mendoza','Mercado','Mercer','Merrill','Merritt','Meyer','Meyers','Michael','Middleton','Miles','Miller','Mills','Miranda','Mitchell','Molina','Monroe','Lucas','Jake','Scott','Amy','Molly','Hannah','Lucas']
2+
3+
# Your code here

Diff for: .learn/resets/03-flip_list/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sample_list = [45, 67, 87, 23, 5, 32, 60]
2+
3+
# Your code below

Diff for: .learn/resets/04-mixed_list/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mix = [42, True, "towel", [2,1], 'hello', 34.4, {"name": "juan"}]
2+
3+
# Your code below

Diff for: .learn/resets/04.1-count_on/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
my_list = [42, True, "towel", [2,1], 'hello', 34.4, {"name": "juan"}]
2+
3+
# Your code here

Diff for: .learn/resets/05-Sum_all_items/app.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
my_sample_list = [3423,5,4,47889,654,8,867543,23,48,5345,234,6,78,54,23,67,3,6,432,55,23,25,12]
2+
3+
def sum_all_values(list):
4+
total = 0
5+
# The magic happens here
6+
7+
8+
return total
9+
10+
print(sum_all_values(my_sample_list))

Diff for: .learn/resets/05.1-sum_odd_items/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
my_list = [4,5,734,43,45,100,4,56,23,67,23,58,45]
2+
3+
# Your code here

Diff for: .learn/resets/06-Print_by_condition/app.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
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]
2+
3+
4+
for i in my_list:
5+
# The magic happens here
6+

Diff for: .learn/resets/06.1-Everything_is_awesome/app.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
my_list = [1, 0, 0, 0, 1, 0, 0, 0, 1, 1]
2+
3+
def my_function(numbers):
4+
new_list = []
5+
for i in numbers:
6+
# The magic happens here
7+
8+
9+
return new_list
10+
11+
print(my_function(my_list))

Diff for: .learn/resets/07-Do_while/app.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Your code here

Diff for: .learn/resets/08-Delete_element/app.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
people = ['juan','ana','michelle','daniella','stefany','lucy','barak']
2+
3+
def delete_person(person_name):
4+
# Your code here
5+
6+
7+
8+
# Don't delete anything below
9+
print(delete_person("daniella"))
10+
print(delete_person("juan"))
11+
print(delete_person("emilio"))

Diff for: .learn/resets/08.1-Merge_list/app.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
chunk_one = ['Lebron', 'Aaliyah', 'Diamond', 'Dominique', 'Aliyah', 'Jazmin', 'Darnell']
2+
chunk_two = ['Lucas', 'Jake', 'Scott', 'Amy', 'Molly', 'Hannah', 'Lucas']
3+
4+
5+
def merge_list(list1, list2):
6+
# Your code here
7+
8+
9+
print(merge_list(chunk_one, chunk_two))

Diff for: .learn/resets/08.2-Divide_and_conquer/app.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
list_of_numbers = [4, 80, 85, 59, 37, 25, 5, 64, 66, 81, 20, 64, 41, 22, 76, 76, 55, 96, 2, 68]
2+
3+
# Your code here
4+
5+
6+
print(sort_odd_even(list_of_numbers))
7+

Diff for: .learn/resets/09-Max_integer_from_list/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
my_list = [43,23,6,87,43,1,4,6,3,67,8,3445,3,7,5435,63,346,3,456,734,6,34]
2+
3+
# Your code here

Diff for: .learn/resets/09.1-For_loop_min_value/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
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]
2+
3+
# Your code here

Diff for: .learn/resets/10-Find_avg/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
my_list = [2323,4344,2325,324413,21234,24531,2123,42234,544,456,345,42,5445,23,5656,423]
2+
3+
# Your code here
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
contact = {
2+
"fullname": "Jane Doe",
3+
"phone": "321-321-4321",
4+
"email": "[email protected]"
5+
}
6+
7+
# Your code here
8+

Diff for: .learn/resets/11-Nested_list/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coordinates_list = [[33.747252, -112.633853], [-33.867886, -63.987], [41.303921, -81.901693], [-33.350534, -71.653268]]
2+
3+
# Your code here

Diff for: .learn/resets/12-Map_a_list/app.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
celsius_values = [-2, 34, 56, -10]
2+
3+
def celsius_to_fahrenheit(celsius):
4+
# The magic happens here
5+
6+
7+
result = list(map(celsius_to_fahrenheit, celsius_values))
8+
9+
print(result)

Diff for: .learn/resets/12.1-more_mapping/app.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
my_numbers = [23,234,345,4356234,243,43,56,2]
2+
3+
# Your code here
4+
5+
print(new_list)
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
names = ['Alice', 'Bob', 'Marry', 'Joe', 'Hilary', 'Stevia', 'Dylan']
2+
3+
def prepender(name):
4+
return "My name is: " + name
5+
6+
# Your code here

Diff for: .learn/resets/12.3-Map_data_types/app.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
mixed_list = ['1','5','45','34','343','34',6556,323]
2+
3+
def type_list(items):
4+
# Your code here
5+
return
6+
7+
new_list = list(map(type_list, mixed_list))
8+
9+
print(new_list)

Diff for: .learn/resets/12.4-Map_list_of_objects/app.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import datetime
2+
3+
people = [
4+
{ "name": 'Joe', "birth_date": datetime.datetime(1986,10,24) },
5+
{ "name": 'Bob', "birth_date": datetime.datetime(1975,5,24) },
6+
{ "name": 'Erika', "birth_date": datetime.datetime(1989,6,12) },
7+
{ "name": 'Dylan', "birth_date": datetime.datetime(1999,12,14) },
8+
{ "name": 'Steve', "birth_date": datetime.datetime(2003,4,24) }
9+
]
10+
11+
def calculate_age(date_of_birth):
12+
today = datetime.date.today()
13+
age = today.year - date_of_birth.year - ((today.month, today.day) < (date_of_birth.month, date_of_birth.day))
14+
return age
15+
16+
def format_greeting(person):
17+
# Your code here
18+
return person["name"]
19+
20+
21+
name_list = list(map(format_greeting, people))
22+
23+
print(name_list)

Diff for: .learn/resets/12.5-Yes_and_no/app.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
the_bools = [0,1,0,0,1,1,1,0,0,1,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1]
2+
3+
# Your code here
4+

Diff for: .learn/resets/12.6-Transformers/app.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
incoming_ajax_data = [
2+
{ "name": 'Mario', "last_name": 'Montes' },
3+
{ "name": 'Joe', "last_name": 'Biden' },
4+
{ "name": 'Bill', "last_name": 'Clon' },
5+
{ "name": 'Hilary', "last_name": 'Mccafee' },
6+
{ "name": 'Bobby', "last_name": 'Mc birth' }
7+
]
8+
9+
# Your code here
10+

Diff for: .learn/resets/13-Filter_list/app.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all_numbers = [23,12,35,5,3,2,3,54,3,21,534,23,42,1]
2+
3+
4+
def filter_function(item):
5+
# Update here
6+
return item % 2 == 1
7+
8+
greater_than_ten = list(filter(filter_function, all_numbers))
9+
10+
print(greater_than_ten)

Diff for: .learn/resets/13.1-Filter_and_list/app.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
all_names = ["Romario", "Boby", "Roosevelt", "Emiliy", "Michael", "Greta", "Patricia", "Danzalee"]
2+
3+
# Your code here
4+
5+
print(resulting_names)
6+
7+
8+
9+

Diff for: .learn/resets/13.2-filter_done_tasks/app.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
tasks = [
2+
{ "label": 'Eat my lunch', "done": True },
3+
{ "label": 'Make the bed', "done": False },
4+
{ "label": 'Have some fun', "done": False },
5+
{ "label": 'Finish the replits', "done": False },
6+
{ "label": 'Replit the finishes', "done": True },
7+
{ "label": 'Ask for a raise', "done": False },
8+
{ "label": 'Read a book', "done": True },
9+
{ "label": 'Make a trip', "done": False }
10+
]
11+
12+
13+
# Your code here
14+

Diff for: .learn/resets/13.3-Filter_list_strings/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
names = ['Liam','Emma','Noah','Olivia','William','Ava','James','Isabella','Logan','Sophia','Benjamin','Mia','Mason','Charlotte','Elijah','Amelia','Oliver','Evelyn','Jacob','Abigail','Lucas','Harper','Michael','Emily','Alexander','Elizabeth','Ethan','Avery','Daniel','Sofia','Matthew','Ella','Aiden','Madison','Henry','Scarlett','Joseph','Victoria','Jackson','Aria','Samuel','Grace','Sebastian','Chloe','David','Camila','Carter','Penelope','Wyatt','Riley']
2+
3+
# Your code here
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
all_colors = [
2+
{"label": 'Red', "sexy": True},
3+
{"label": 'Pink', "sexy": False},
4+
{"label": 'Orange', "sexy": True},
5+
{"label": 'Brown', "sexy": False},
6+
{"label": 'Pink', "sexy": True},
7+
{"label": 'Violet', "sexy": True},
8+
{"label": 'Purple', "sexy": False},
9+
]
10+
11+
# Your code here
12+

Diff for: .learn/resets/14-Loop-dictionary/app.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
spanish_translations = { "dog": "perro", "house": "casa", "cat": "gato" }
2+
# Your code here
3+
4+
5+
# Don't touch the code below
6+
print("Translation:", spanish_translations["dog"])
7+
print(spanish_translations)

Diff for: .learn/resets/14.1-letter_counter/app.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
par = "Lorem ipsum dolor sit amet consectetur adipiscing elit Curabitur eget bibendum turpis Curabitur scelerisque eros ultricies venenatis mi at tempor nisl Integer tincidunt accumsan cursus"
2+
3+
counts = {}
4+
5+
# Your code here
6+
7+
8+
print(counts)

Diff for: .learn/resets/15.1-Matrix_Builder/app.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Your code here

Diff for: .learn/resets/15.2-Parking_lot_check/app.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parking_state = [
2+
[1,1,1],
3+
[0,0,0],
4+
[1,1,2]
5+
]
6+
7+
# Your code here

Diff for: .learn/resets/16-Techno_beat/app.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
# Your code above, nothing to change after this line
4+
print(lyrics_generator([0,0,1,1,0,0,0]))
5+
print(lyrics_generator([0,0,1,1,1,0,0,0]))
6+
print(lyrics_generator([0,0,0]))
7+
print(lyrics_generator([1,0,1]))
8+
print(lyrics_generator([1,1,1]))

Diff for: exercises/01-hello-world/app.py

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# Your code here
2+
print("Hello World")

Diff for: exercises/01.1-Access-and-Retrieve/app.py

+3-2
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])

Diff for: exercises/01.2-Retrieve-items/app.py

+2-1
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])

Diff for: exercises/01.3-Print-the-last-one/app.py

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ def generate_random_list():
1414

1515
# Write your code below this comment, good luck!
1616

17+
the_last_one = len(my_stupid_list)
18+
print(the_last_one)

Diff for: exercises/01.4-loop-seventeen/app.py

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# Your code here, have fun:
2+
for i in range(0,18):
3+
print(i)

Diff for: exercises/01.5-Add-item-to-list/app.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Remember to import random function here
2+
import random
23

34
my_list = [4, 5, 734, 43, 45]
45

56
# The magic goes below
7+
8+
for i in range(10):
9+
numbers = random.randint(1, 100)
10+
my_list.append(numbers)
11+
12+
print(my_list)

0 commit comments

Comments
 (0)