Error al crear la variable palabra


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/es/courses/python-beginner-es-3oaa8/1/2?curriculum_id=53a32847fed2a88075000001#

<In what way does your code behave incorrectly? Include ALL error messages.>
File “python”, line 5
if len(original) > 0 and original.isalpha()
^
SyntaxError: invalid syntax

<What do you expect to happen instead?>

no se por que me dice que no e creado la variable palabra si ya lo hice dentro de la sentencia if



Replace this line with your code. 

pyg = 'ay'

original = raw_input('Escribi una palabra:')

if len(original) > 0 and original.isalpha()
palabra = original.lower()
primera="palabra"[0]:
	print original
else:
	print 'vacio'

#2
primera = palabra[0]

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.