You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/14-Loop-dictionary/README.es.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,29 @@
1
1
# `14` Loop a Dictionary
2
2
3
-
Puedes pensar en un diccionario como en una lista con posiciones no numéricas:
3
+
Los diccionarios nos permiten identificar cada elemento por una clave `key`, a diferencia de las listas en donde simplemente hay valores e índices. Para definir un diccionario, se encierra el listado de valores entre llaves. Las parejas de clave y valor se separan con comas, y la clave y el valor se separan con dos puntos: `{clave: valor, otraClave: otroValor, ...}`.
4
+
5
+
### Puedes pensar en un diccionario como en una lista con posiciones no numéricas:
Copy file name to clipboardExpand all lines: exercises/14-Loop-dictionary/README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,30 @@
1
1
# `14` Loop A Dictionary
2
2
3
-
You can think of a dictionary like a list with non-numerical positions:
3
+
The dictionaries allow us to identify each element by a key `key`, as opposed to lists where there are simply values and indexes. To define a dictionary, the list of values is enclosed in curly braces. Key and value pairs are separated by commas, and key and value are separated by colons: `{key: value, otherKey: otherValue, ...}`.
4
+
5
+
### You can think of a dictionary like a list with non-numerical positions:
0 commit comments