Permalink
Browse files

Update data-collections.md

  • Loading branch information...
aspittel committed Apr 10, 2018
1 parent b46aabe commit 0e6276ea301d27f1e6701f95894e13dc290dab9e
Showing with 6 additions and 6 deletions.
  1. +6 −6 data-collections.md
View
@@ -1,6 +1,6 @@
### Arrays
### Lists
Starting with the following array...
Starting with the following list...
```py
planeteers = ["Earth", "Wind", "Captain Planet", "Fire", "Water"]
@@ -18,7 +18,7 @@ Add "Heart" to the end of `planeteers`.
# Your answer here
```
Remove "Captain Planet" from the array.
Remove "Captain Planet" from the list.
```py
# Your answer here
@@ -50,9 +50,9 @@ Select a random element from `heroes` using a function. [The Python documentatio
# Your answer here
```
### Hashes
### Dictionaries
Initialize a hash called `ninja_turtle` with the properties `name`, `weapon` and `radical`. They should have values of "Michelangelo", "Nunchuks" and `true` respectively.
Initialize a dictionary called `ninja_turtle` with the properties `name`, `weapon` and `radical`. They should have values of "Michelangelo", "Nunchuks" and `true` respectively.
```py
# Your answer here
@@ -70,7 +70,7 @@ Remove the `radical` key-value pair from `ninja_turtle`.
# Your answer here
```
Add a key `pizza_toppings` to `ninja_turtle`. Set it to an array of strings (e.g., `["cheese", "pepperoni", "peppers"]`).
Add a key `pizza_toppings` to `ninja_turtle`. Set it to an list of strings (e.g., `["cheese", "pepperoni", "peppers"]`).
```py
# Your answer here

0 comments on commit 0e6276e

Please sign in to comment.