Skip to content

Commit 7274575

Browse files
authored
Update README.md
1 parent ed582a3 commit 7274575

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exercises/11-Nested_list/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ It is possible to find a list comprised of other lists (it is called a two-dimen
55
In this example, we have a list of coordinates that you can access by doing the following:
66

77
```py
8-
for coordinates in coordinates_list:
9-
print(coordinates)
8+
# The first coordinate is latitude
9+
latitude = coordinates_list[0][0]
10+
# The second coordinate is longitude
11+
longitude = coordinates_list[0][1]
1012
```
1113

1214
## 📝 Instructions:
1315

1416
1. Loop through the list, printing only the *longitudes*.
1517

16-
## 💡 Hints:
17-
18-
+ The structure of the coordinates is `[latitude, longitude]`.
18+
## 💡 Hint:
1919

2020
+ Remember, the index of the first item in a list is `list[0]`.
2121

0 commit comments

Comments
 (0)