Complete the function/method so that it returns the url with anything after the anchor (`#`) removed. 
## Examples
```python
# returns 'www.codewars.com'
remove_url_anchor('www.codewars.com#about')
# returns 'www.codewars.com?page=1' 
remove_url_anchor('www.codewars.com?page=1') 
```
def remove_url_anchor(url):
    if '#' not in url:
        return url
    else:
        get_index = list(url).index('#')
        return url[:get_index]
def remove_url_anchor(url):
    if '#' not in url:
        return url
    else:
        get_index = list(url).index('#')
        return url[:get_index]