Skip to content

Commit 1056f61

Browse files
committed
solutions
1 parent 3edd1b2 commit 1056f61

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

_episodes/02-datatypes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ my_list = [0,1,2]
179179
>
180180
> Change the value of a single element in `my_list ` and `my_tuple`.
181181
>
182-
<!-- > > ## Solution: List
182+
> > ## Solution: List
183183
> >
184184
> > ~~~
185185
> > my_list[1] = 5
@@ -206,7 +206,7 @@ my_list = [0,1,2]
206206
> >TypeError: 'tuple' object does not support item assignment
207207
> > ~~~
208208
> > {: .output}
209-
> {: .solution} -->
209+
> {: .solution}
210210
{: .challenge}
211211
212212
### Assigning Elements of a List or Tuple to New Variables
@@ -393,7 +393,7 @@ for key in numbers2:
393393
>
394394
> Try to reassign the second value of `numbers2` (in the *key value pair*) so that it no longer reads "two" but instead reads "spam and eggs". What does your dictionary look like after you make this change?
395395
>
396-
<!-- > > ## Solution
396+
> > ## Solution
397397
> >
398398
> > ~~~
399399
> > numbers2[2] = 'spam and eggs'
@@ -405,7 +405,7 @@ for key in numbers2:
405405
> >{1: 'one', 2: 'spam and eggs', 3: 'three', 4: 'four'}
406406
> > ~~~
407407
> > {: .output}
408-
> {: .solution} -->
408+
> {: .solution}
409409
{: .challenge}
410410
411411
It is important to note that dictionaries in Python 3.6 or greater are insertion _ordered_ and preserve the

0 commit comments

Comments
 (0)