6
Possible Duplicate:
Syntax error on print with Python 3stampa sintassi non valida in Python 3.3.0
im cercando di fare fattoriale in Python 3 e tutto ciò che ho messo mi dice la stessa cosa "Sintassi non valida: Errore di sintassi" ... Perché è mi dà un errore ? grazie
versioni
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)] on win32
questo è quello che sto cercando di fare
>>> def fact(n):
... res = 1
... while n > 1:
... res *= n
... n -= 1
... return res
e quando provo a stampare
>>> print fact(23)
mi dice SyntaxError: sintassi non valida