
David Quintana
PreguntaHola, no entiendo por que me sale error, y no me deja ingresar el tamaño.
import turtle def main(): window = turtle.Screen() #abro ventana santiago = turtle.Turtle() make_square(santiago) def make_square(santiago): length = int (raw_input('Tamaño del lado')) #ME SALE AQUIII for i in range(4): #se hace cuatro veces loq eu nosotros queremos make_line_and_turn(santiago, length) def make_line_and_turn(santiago, length): santiago.forward(length) santiago.left(90) if __name__ == '__main__': #donde debe iniciar los programas en pyton main()

Rubén Maier Enzler
tengo el mismo error y no se debe a ninguna de las razones que plantean porque ya probé y persiste.

Geovanny Javier Páez García
Tal vez la version del python en el python 3 debes usar input() en lugar de raw_input()

Danelia Sanchez Sanchez
Se trata de un error debido a que en el script hay caracteres especiales (letra ñ). Usa la siguiente línea al principio del script:
# -*- coding: utf-8 -*-
Puedes leer más sobre ello aquí

David Quintana
Copie e intente con el código del profe y me sale el mismo error: " File "C:\Users\david\OneDrive\Documentos\Platzi\Python\funcion.py", line 12 SyntaxError: Non-ASCII character '\xc3' in file C:\Users\david\OneDrive\Documentos\Platzi\Python\funcion.py on line 12, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details "
No se por que...help.