Проверка начала строки: startswith()

Метод возвращает True или False:

url = "https://python.org"
print(url.startswith("https://"))  # True