Skip to content

Fix indexing examples in Lists lesson - #733

Open
MahdiKordian wants to merge 1 commit into
swcarpentry:mainfrom
MahdiKordian:fix-issue-732-list-indexing
Open

MahdiKordian wants to merge 1 commit into
swcarpentry:mainfrom
MahdiKordian:fix-issue-732-list-indexing

Conversation

@MahdiKordian

Copy link
Copy Markdown

Summary

  • Fix the index used to access the fourth item in the pressures list.
  • Replace "zeroth" with "first" in the list and string examples.
  • Correct the string indexing example so the third character of carbon is accessed with element[2].
  • Update the expected outputs to match the corrected examples.

Validation

  • Checked the expected values and outputs against Python's zero-based indexing.
  • git diff --check completed without errors.

Closes #732

@github-actions

Copy link
Copy Markdown

🆗 Pre-flight checks passed 😃

This pull request has been checked and contains no modified workflow files, spoofing, or invalid commits.

It should be safe to Approve and Run the workflows that need maintainer approval.

This branch has not been deployed

No deployments
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.

Error in Lists episode "Use an item’s index to fetch it from a list"

1 participant