Is my code ok?


#1

def the_flying_circus():
print "Pulse espectáculo Flying Animal or Diferent"
Tipo_show= raw_input ("Escriba tipo de espectáculo")
if tipo_show == flying:
print "Espectaculo volador"
elif tipo_show != "flying" != "animal" != "difrent":
print "El tipo de show buscado no lo tenemos"
else:
print "no matches found"


#2

Short answer, not really. There are several errors. Suggest go back to a blank page and start over. Keep it simple. Read the instructions carefully. There is only one expection... The function should return True. We are free to write any expressions we wish just so long as the return value is the one that is expected.

Respuesta corta, no realmente. Hay varios errores. Sugeriría volver a una página en blanco y empezar de nuevo. Mantenlo simple. Lea las instrucciones cuidadosamente. Sólo hay una expection ... La función debe devolver True. Somos libres para escribir cualquier expresión que deseamos con tal de que el valor de retorno es el que se espera.


#3

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