You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Comprobamos si los vectores tienen la misma longitud
if len(v1) == len(v2):
# condición de si son perpediculares
if v1[0] * v2[0] + v1[1] * v2[1] == 0:
return True
else:
return False
else:
# Mensaje si no tienen la misma longitud
return print("Los vectores no tienen las misma longitud")
if ortogonales([4 / 3, 2], [-3 / 2, 1]):
print("Los vectores son ortogonales")
else:
print("No son ortogonales")
`
The text was updated successfully, but these errors were encountered:
`
def ortogonales(v1, v2):
if ortogonales([4 / 3, 2], [-3 / 2, 1]):
print("Los vectores son ortogonales")
else:
print("No son ortogonales")
`
The text was updated successfully, but these errors were encountered: