man-group / man-group/PythonTrainingExercises
map and filter different behaviour in python3
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 266
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
The Functions exercise doesn't work properly when run in python3 because filter and map don't return a list anymore but an iterable.
(simple) patch attached
[Functions_list_patch.txt](https://github.com/manahl/PythonTrainingExercises/files/74803/Functions_list_patch.txt)
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.
Research direction
Start with the Functions exercise and run it under Python 3 to reproduce the map/filter behavior. Compare the exercise with the attached Functions_list_patch.txt and verify that the exercise produces the expected list-based results when complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100