Skip to content

Issue with part 01 e 14 - finding matches #6

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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