Remove the parentheses
=
In this kata you are given a string for example:
```python
"example(unwanted thing)example"
```
Your task is to remove everything inside the parentheses as well as the parentheses themselves.
The example above would return:
```python
"exampleexample"
```
Other than parentheses only letters and spaces can occur in the string. Don't worry about other brackets like ```"[]"``` and ```"{}"``` as these will never appear.
import re
def remove_parentheses(s):
    ret, count = "", 0
    for letter in s:
        if letter == "(": count +=1
        elif letter == ")": count -=1
        elif count == 0: ret += letter
    return ret
import re
def remove_parentheses(s):
    ret, count = "", 0
    for letter in s:
        if letter == "(": count +=1
        elif letter == ")": count -=1
        elif count == 0: ret += letter
    return ret