Skip to content

Commit f0081a4

Browse files
committed
pytest
1 parent 606f85e commit f0081a4

File tree

25 files changed

+77
-74
lines changed

25 files changed

+77
-74
lines changed

exercises/03-flip_list/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# `03` Flip list
22

3-
#📝Instructions:
3+
# 📝Instructions:
44
1. Create a variable new_list
55
2. Using a loop, invert the "arr" list.
66
3. Append the result loop into the new_list variable .
77
4. With print() function output in the console the result that you have.
88

9-
```js
9+
```py
1010
Initial list: [45, 67, 87, 23, 5, 32, 60]
1111
Final list: [60, 32, 5 , 23, 87, 67, 45]
1212
```

exercises/03-flip_list/app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
arr = [45, 67, 87, 23, 5, 32, 60]
22

33
#your code below:
4-
5-
print(new_list)

exercises/04-mixed_list/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `04` Mixed List
22

3-
#📝instructions:
3+
# 📝instructions:
44
1. Write a function to programmatically print in the console the
55
types of the values that the list contains in each position
66
2. You can use the for loop.

exercises/04-mixed_list/app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
mix = [42, True, "towel", [2,1], 'hello', 34.4, {"name": "juan"}]
22

33
# Your code below:
4-
5-

exercises/04.1-count_on/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#`04.1` Count On
1+
# `04.1` Count On
22

33

44
As you saw in the last exercise your list can be a mix

exercises/04.1-count_on/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
12
my_list = [42, True, "towel", [2,1], 'hello', 34.4, {"name": "juan"}]
23

34
#your code go here:
5+
hello = []
6+
for items in range(len(my_list))
7+
if my_list[itms] !=
48

5-
print(type(my_list[-1]))
9+
print(hello)

exercises/07-Dowhile_DO_DO/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ do {
1616
```
1717

1818

19-
#📝Instructions
19+
# 📝Instructions
2020
1. Print every iteration number on the console from 20 to 0,
2121
but `concatenate an exclamation point` to the output if the number
2222
is a module of 5

exercises/08-Delete_element/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The only way to delete `Daniella` from the list (without cheating)
44
will be to create a new list with all the other people but Daniella.
55

6-
#📝Instructions
6+
# 📝Instructions
77
1. Please create a deletePerson function that deletes any given person from the list
88
and returns a new list without that person.
99

exercises/08-Delete_element/app.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@
33
#Your code go here:
44
def deletePerson(person_name):
55
#Your code go here:
6-
filtered_people = []
7-
for p in people:
8-
if p != person_name:
9-
filtered_people.append(p)
10-
11-
return filtered_people
12-
6+
137
print(deletePerson("daniella"))
148
print(deletePerson("juan"))
15-
print(deletePerson("emilio"))
16-
17-
9+
print(deletePerson("emilio"))

exercises/12-Map_a_list/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#`12` Map a list
1+
# `12` Map a list
22

33
```py
44
Python map()
55
```
66
The map() function applies a given function to each item of an iterable
77
(list, tuple etc.) and returns a list of the results.
88

9-
#The syntax of map() is:
9+
# The syntax of map() is:
1010
```py
1111
map(function, iterable, ...)
1212
```
@@ -15,14 +15,14 @@ map(function, iterable, ...)
1515
iterable iterable which is to be mapped
1616
You can pass more than one iterable to the map() function.
1717

18-
#Return Value from map()
18+
# Return Value from map()
1919
The map() function applies a given to function to each item of an iterable
2020
and returns a list of the results.
2121

2222
The returned value from map() (map object) then can be passed to functions
2323
like list() (to create a list), set() (to create a set) and so on.
2424

25-
#📝Instructions:
25+
# 📝Instructions:
2626
1. Using the same logic, add the needed code to convert a list of Celsius values
2727
into Fahrenheit inside the map function.
2828

0 commit comments

Comments
 (0)