# Error de sintaxys en algoritmo de python

[Inicio](https://www.todoexpertos.com/) › [Python](https://www.todoexpertos.com/temas/python) › [Programación](https://www.todoexpertos.com/temas/programacion) › [Ingeniería Informática](https://www.todoexpertos.com/temas/ingenieria-informatica)

- Fecha de publicación: 2020-03-29
- Enlace canónico (HTML): https://www.todoexpertos.com/preguntas/ahmonwyr5x4dfsdk/error-de-sintaxys-en-algoritmo-de-python

## Pregunta

*Por Andrea  perez* · 2020-03-29

En la línea 14 del código me sale un error de sitaxis, que es este SyntaxError: invalid syntaxn=int(input('ingrese n : '))while not (n%2==1) and n>0:print ('n debe de ser impar y mayor que 0')n=int(input('ingrese n'))a=1while not a==n+2 :b=awhilenot b==1:print (end='*')b=b-1print(end='*')b=0while not b== (n-a)*4print(' ')b=b+1b=awhile not b==1print(end='*')b=b-1

## Respuestas (0)

_Esta pregunta aún no tiene respuestas._

---
*Fuente: [https://www.todoexpertos.com/preguntas/ahmonwyr5x4dfsdk/error-de-sintaxys-en-algoritmo-de-python](https://www.todoexpertos.com/preguntas/ahmonwyr5x4dfsdk/error-de-sintaxys-en-algoritmo-de-python) — consultado el 2026-10-22. Al citar, enlaza la URL canónica e indica la fecha de consulta.*
