You can pass a tuple of prefixes to `startswith` as a shorthand:

````python
url.startswith(('http:', 'https:'))
````