Skip to content

lists.md: heterogeneous data and nested lists#278

Closed
gabayae wants to merge 1 commit intoswcarpentry:gh-pagesfrom
gabayae:Lesson03_nested_list_addition_ex
Closed

lists.md: heterogeneous data and nested lists#278
gabayae wants to merge 1 commit intoswcarpentry:gh-pagesfrom
gabayae:Lesson03_nested_list_addition_ex

Conversation

@gabayae
Copy link
Copy Markdown

@gabayae gabayae commented Jun 30, 2016

No description provided.

@gabayae
Copy link
Copy Markdown
Author

gabayae commented Jul 1, 2016

This example is meant to demonstrate that a list can contain heterogeneous data, and that the way we refer to an element in the list remains very basic of the corresponding type of structure.

@gabayae gabayae changed the title I added an ex on nested loop, heterogenous data. Added an example on nested loop, heterogeneous data. Jul 1, 2016
@tbekolay
Copy link
Copy Markdown
Contributor

tbekolay commented Jul 2, 2016

Hi @gabayae, thanks for your contribution!

I think that the idea of heterogeneous types of data in lists is a useful concept to introduce, but I don't think that it's imperative enough to have it in the main lesson. I think that a callout box would be appropriate, as we've done for lists of lists.

I also think that the example introduces more complexity than is necessary for the novice audience that we're targeting. We currently do not talk about dictionaries or classes or objects at all in the lesson, so those references should be removed. We also talk about lists of lists elsewhere, so I think for this lesson all that is necessary is to mix integers, floats, and strings, which are three types that we've introduced at this point. I think a simple example like sample_age = [2, 5.5, "Unknown"] gets the point across, and is something that a scientist could see being useful.

@gabayae
Copy link
Copy Markdown
Author

gabayae commented Jul 4, 2016

Hi @tbekolay, thanks for the comment.

I think I agree with you regarding the complexity. The example you gave is surely more appropriate. I actually noticed later on that " dictionaries" were not discussed at all in the lesson.

@maxim-belkin maxim-belkin changed the title Added an example on nested loop, heterogeneous data. lists.md: heterogeneous data and nested lists Apr 17, 2018
@maxim-belkin
Copy link
Copy Markdown
Contributor

Closing this PR but the discussion is useful. I'll create an issue with a request for a PR

@maxim-belkin maxim-belkin mentioned this pull request May 24, 2018
rgaiacs added a commit to rgaiacs/swc-python-novice-inflammation that referenced this pull request May 24, 2018
Run lesson-fixme from within lesson-check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants