Checks if brackets are closed given a string
Project description
# bracket_closed
## Checks if all brackets in a string are balanced
## Example code:
```python
from brackets_closed import close_check
close_check.is_closed("([])")
close_check.is_closed("([)]")
close_check.is_closed("[](){{{{[]}}}}")
close_check.is_closed("][][")
close_check.is_closed("print('This(is) a test to see { if this code { will extract }} brackets [] fro[m a string] that is not {} just brackets!')")
```
## Output from example:
```sh
True
False
True
False
True
```
## Checks if all brackets in a string are balanced
## Example code:
```python
from brackets_closed import close_check
close_check.is_closed("([])")
close_check.is_closed("([)]")
close_check.is_closed("[](){{{{[]}}}}")
close_check.is_closed("][][")
close_check.is_closed("print('This(is) a test to see { if this code { will extract }} brackets [] fro[m a string] that is not {} just brackets!')")
```
## Output from example:
```sh
True
False
True
False
True
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
brackets_closed-0.4.tar.gz
(1.3 kB
view hashes)