pyvec / pyvec/naucse.python.cz

century = birth_years // 100 + 1

Open
#235 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug content MI-PYT
Dominant language
No language data
Stars
335
Forks
119
Avg merge
3h 6m
Merged PRs (30d)
1

Description

Tohle nefunguje:

>>> birth_years = 2000
>>> century = birth_years // 100 + 1
21

Rok 2000 patří ještě do 20. století.

Můžeme argumentovat, že pro naše data to funguje, ale vhledem k tomu, že všechna naše data jsou v intervalu <1901; 1999> tak by fungovalo i (něco jako) return 20.

Vzhledem k výuce Pandas je tahle výtka irelevantní, jen mě to trklo.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The affected lesson or example is not named in the issue; search the repository for birth_years // 100 + 1 and reproduce the 2000 case. Done means the teaching example handles the 2000 boundary correctly while preserving the intended behavior for the lesson’s data.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
content
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.