Skip to content

Commit cc06add

Browse files
committed
updates
1 parent 9380456 commit cc06add

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

_episodes/02-datatypes.md

Lines changed: 6 additions & 6 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
Once created, tuples cannot be changed in any way. This means you cannot add new values to your tuple container. As a result, Python stores these variables differently from lists since there is no need to allocate any additional memory for potential changes in size. This, in turn, makes tuples more memory efficient.
@@ -395,7 +395,7 @@ for key in numbers2:
395395
>
396396
> 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?
397397
>
398-
<!-- > > ## Solution
398+
> > ## Solution
399399
> >
400400
> > ~~~
401401
> > numbers2[2] = 'spam and eggs'
@@ -407,7 +407,7 @@ for key in numbers2:
407407
> >{1: 'one', 2: 'spam and eggs', 3: 'three', 4: 'four'}
408408
> > ~~~
409409
> > {: .output}
410-
> {: .solution} -->
410+
> {: .solution}
411411
{: .challenge}
412412
413413
It is important to note that dictionaries in Python 3.6 or greater are insertion _ordered_ and preserve the
@@ -755,7 +755,7 @@ import this
755755
>
756756
> 3. Create two lists `l1 = [53, 16, 1, 86, 3, 33, 41, 76, 71, 4]` and `l2 = [30, 100, 94, 90, 17, 11, 39, 23, 90, 52]`. Use python to create a new list that contains only the odd numbers from both lists. The third list should look like this: `[53, 1, 3, 33, 41, 71, 17, 11, 39, 23]`.
757757
>
758-
<!-- > > ## Solutions
758+
> > ## Solutions
759759
> >
760760
> > (1) The index for character `l` is `a[6]`.
761761
> >
@@ -807,5 +807,5 @@ import this
807807
> > {: .output}
808808
> >
809809
> >
810-
> {: .solution} -->
810+
> {: .solution}
811811
{: .challenge}

setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ permalink: /setup/
66

77
You need to download some files to follow this lesson:
88

9-
1. Make a new folder in your Desktop (or anywhere else you like) called `python-bcb546`.
9+
1. Make a new folder in your Desktop (or anywhere else you like) called `python-bcb546`. Download from these links by saving in your web browser. Or if you are in a unix terminal you can use `wget <url>` and replace the `<url>` with the path to the file you wish to download.
1010
2. Download the following files into this folder:
11-
3. [surveys.csv](https://github.com/EEOB-BioData/BCB546-Spring2022/raw/main/course-files/python/surveys.csv)
12-
4. [species.csv](https://github.com/EEOB-BioData/BCB546-Spring2022/raw/main/course-files/python/species.csv)
13-
5. [surveys_complete.csv](https://github.com/EEOB-BioData/BCB546-Spring2022/raw/main/course-files/python/surveys_complete.csv)
11+
1. [surveys.csv](https://github.com/EEOB-BioData/BCB546-Spring2022/raw/main/course-files/python/surveys.csv)
12+
2. [species.csv](https://github.com/EEOB-BioData/BCB546-Spring2022/raw/main/course-files/python/species.csv)
13+
3. [surveys_complete.csv](https://github.com/EEOB-BioData/BCB546-Spring2022/raw/main/course-files/python/surveys_complete.csv)
1414

1515
Or, you can pull from the [course repository](https://github.com/EEOB-BioData/BCB546-Spring2022) and change to the directory containing the data files:
1616
1. `cd BCB546-Spring2022`

0 commit comments

Comments
 (0)