url: str = input("Digite a URL para validação: ").strip().lower()
def validacao(url: str) -> str:
try:
if url.startswith("https://") and url.endswith(".com"):
return "URL válida!"
else:
return "URL inválida!"
except Exception:
return "Entrada Inválida! Tente novamente."
print(validacao(url))