Skip to content

Issue with part 01 e 14 - finding matches #6

@romain-gonzo

Description

@romain-gonzo

Here is my code for the problem:

def find_matching(L, pattern):
    l = []
    for x,y in enumerate(L):
        if pattern in y:
            l.append(x)
    return l 

def main():
    pass

if __name__ == "__main__":
    main()

https://tmc.mooc.fi/paste/3_8DTPnsqpNZZkXjE9JznQ

I get an error : test.test_find_matching.FindMatching.test_calls
maximum recursion depth exceeded while calling a Python object

The two other are corrects, when i try my code in IDLE everything work, I have trouble seeing where the problem comes from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions