Skip to content

Commit

Permalink
Merge pull request #484 from jason-ellis/episode-3-pep-8
Browse files Browse the repository at this point in the history
Change variable 'mySalsa' to 'my_salsa' for PEP 8 compliance.
  • Loading branch information
Anne Fouilloux authored Mar 10, 2018
2 parents bd41119 + cf20b70 commit 6a09fee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _episodes/03-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ does not.
>
> ~~~
> salsa = ['peppers', 'onions', 'cilantro', 'tomatoes']
> mySalsa = salsa # <-- mySalsa and salsa point to the *same* list data in memory
> my_salsa = salsa # <-- my_salsa and salsa point to the *same* list data in memory
> salsa[0] = 'hot peppers'
> print('Ingredients in my salsa:', mySalsa)
> print('Ingredients in my salsa:', my_salsa)
> ~~~
> {: .language-python}
>
Expand All @@ -141,9 +141,9 @@ does not.
>
> ~~~
> salsa = ['peppers', 'onions', 'cilantro', 'tomatoes']
> mySalsa = list(salsa) # <-- makes a *copy* of the list
> my_salsa = list(salsa) # <-- makes a *copy* of the list
> salsa[0] = 'hot peppers'
> print('Ingredients in my salsa:', mySalsa)
> print('Ingredients in my salsa:', my_salsa)
> ~~~
> {: .language-python}
>
Expand Down

0 comments on commit 6a09fee

Please sign in to comment.