Solución
solution.tsTypeScript
def starts_with(text: str, prefix: str) -> bool:
# Escribe tu solución aquí
if len(prefix) > len(text):
return False
for i in range(len(prefix)):
if prefix[i] == text[i]:
continue
else:
return False
return True;
0respuestas