-
-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Add line breaks in _episodes/03-lists #566
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, @emdupre! Please see my comments below (above?) :)
_episodes/03-lists.md
Outdated
> the list value, it will change for both variables! | ||
> Be careful when modifying data in-place. | ||
> If two variables refer to the same list, and you modify the list value, | ||
> it will change for both variables! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep all the lines above unchanged. They do not exceed the 100-character limit.
_episodes/03-lists.md
Outdated
@@ -173,7 +175,8 @@ does not. | |||
> Here is a visual example of how indexing a list of lists `x` works: | |||
> | |||
> <a href='https://twitter.com/hadleywickham/status/643381054758363136'> | |||
> ![The first element of a list. Adapted from @hadleywickham's tweet about R lists.](../fig/indexing_lists_python.png)</a> | |||
> ![The first element of a list. Adapted from @hadleywickham.](../fig/indexing_lists_python.png) | |||
> </a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rewrite this link in Markdown.
[![The first element of a list.
Adapted from @hadleywickham.](../fig/indexing_lists_python.png)][hadleywickham-tweet]
And add the following to the bottom of the document:
[hadleywickham-tweet]: https://twitter.com/hadleywickham/status/643381054758363136
@@ -214,7 +217,7 @@ does not. | |||
|
|||
> ## Heterogeneous Lists | |||
> Lists in Python can contain elements of different types. Example: | |||
> ~~~ | |||
> ~~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -539,4 +539,6 @@ Omitting ending index: ["sep", "oct", "nov", "dec"] | |||
> {: .solution} | |||
{: .challenge} | |||
|
|||
[hadleywickham-tweet]: https://twitter.com/hadleywickham/status/643381054758363136 | |||
|
|||
{% include links.md %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Was about to add a comment about it :)
_episodes/03-lists.md
Outdated
> <a href='https://twitter.com/hadleywickham/status/643381054758363136'> | ||
> ![The first element of a list. Adapted from @hadleywickham's tweet about R lists.](../fig/indexing_lists_python.png)</a> | ||
> [![The first element of a list. | ||
Adapted from @hadleywickham.](../fig/indexing_lists_python.png)][hadleywickham-tweet] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this does not change much, but let's add >
in the beginning of this line.
@@ -539,4 +539,6 @@ Omitting ending index: ["sep", "oct", "nov", "dec"] | |||
> {: .solution} | |||
{: .challenge} | |||
|
|||
[hadleywickham-tweet]: https://twitter.com/hadleywickham/status/643381054758363136 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use this link on line 211 as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again, @emdupre!
Thank you ! |
Helps to address #498, following up on #565 !
Changes proposed: