Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # def ra(url):
- # for i in url:
- # if i == '#':
- # x = url.index(i)
- # return url[:x]
- #
- def ra(url):
- if '#' in url:
- x = url.index('#')
- return url[:x]
- else:
- return url
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement