Skip to content

an error caused by brackets #59

@LTEnjoy

Description

@LTEnjoy

Hi, I ran into an error when ran the code:
words = ['(', 'There', 'is', 'no', 'doubt', ')'] and I got the error as follow:
IndexError: list index out of range
What is mystrious is that when I deleted the brackets '(' and ')', it worked.
Could you tell me how can I rewrite the code to make it work even with brackets?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions