jttoivon / data-analysis-with-python-spring-2019

Sources of materials for the course Data Analysis with Python - Spring 2019. Newer course instance available here https://csmastersuh.github.io/data_analysis_with_python_2020/
https://jttoivon.github.io/data-analysis-with-python-spring-2019/
4 stars 18 forks source link

Week 1: Exercise 14 (find matching) TMC & exercise itself want wrong answer #6

Open vihervirveli opened 5 years ago

vihervirveli commented 5 years ago

The exercise claims "en" in "comment" starts at index 3, but it starts at 4. TMC also wants 3 as the answer, and not the correct 4.

"""An example: find_matching(["sensitive", "engine", "rubbish", "comment"], "en") should return the list [0, 1, 3]"""

-> [0, 1, 4]