Ho provato a farlo ma mi da il messaggio di errore "invalid syntax" se
scrivo:

Pippo = eval(input("ciao")
Print (Pippo)

Il giorno 18/lug/2014 10:32, "Daniele Tricoli" <er...@mornie.org> ha
scritto:
>
> On Friday 18 July 2014 11:18:59 Luca Addis wrote:
> > Avevo anche la versione precedente di python (quella che aveva raw_input
> > per le stringhe e input per i numeri) e con quella funziona ma adesso
non
> > ce piu la distinzione tra i due e non so come fare.
> > Soluzioni?
>
> Immagino tu stia usando adesso Python3 (bene! :D)
>
> Guarda qui:
> http://legacy.python.org/dev/peps/pep-3111/
>
>
>     The existing raw_input() function will be renamed to input().
>
>
>     The Python 2 to 3 conversion tool will replace calls to input() with
>     eval(input()) and raw_input() with input().
>
> HTH,
>
> --
>  Daniele Tricoli 'Eriol'
>  http://mornie.org
> _______________________________________________
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a