typo exemple d'indexation
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 78/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- documentation
Research direction
Open the course section “Structures de données 1/Listes et Tuples/Listes/Indexation” and review the examples for c[2][0] and b[1:]. Check the indexing explanations against Python’s list behavior, then correct any confirmed wording or code errors; done means both examples and their comments are consistent.
Written by the indexing model from the issue text.
Description
copie du commentaire laissé sur le repo linogaliana
python-datascientist : https://github.com/linogaliana/python-datascientist/issues/681#issue-4137637762
Bonjour et merci pour ce cours très clair et très progressif.
Est-ce un défaut de compréhension de ma part ou y-a-t-il une coquille dans l'exemple suivant (Structures de données 1/Listes et Tuples/Listes/Indexation) :
# Premier élément de la sous-liste qui est à la deuxième position de la liste c
print(c[2][0])
--> ce code ne retourne-t-il pas le premier élément de la sous liste à la troisième position (index 2). le code correct ne devrait il pas être :
print(c[1][0]
?
de même dans le paragraphe suivant :
# Tous les éléments à partir de la 1ère position
print(b[1:])
ne devrait-ce pas être :
print(b[0:])
?
Cordialement
Emmanuel
- Dominant language
- Python
- Stars
- 3
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from InseeFrLab/formation-python-initiation
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
InseeFrLab/formation-python-initiation#26 · 1 comment ·
-
Dependency Dashboard Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
-
Améliorations Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
All issues in InseeFrLab/formation-python-initiation
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100