Re: [Python] Creare un dictionary in python 2.6 and python 2.7

2014-07-07 Per discussione Valerio Maggio
emmanuel segura wrote: > Ciao a tutti, > > Mi rispondo da solo > http://stackoverflow.com/questions/1747817/python-create-a-dictionary-with-list-comprehension Bene, hai fatto prima di me! :) In ogni caso, per tutti (come riportato su SO): In Python 2.6 (o precedenti), `dict` constructor:

Re: [Python] Creare un dictionary in python 2.6 and python 2.7

2014-07-07 Per discussione Valerio Maggio
emmanuel segura wrote: > Ciao a tutti, Ciao e benvenuto :) > > volevo capire perche la creazione di un dictionary in python 2.6 non > funziona e invece su python 2.7 si. > > Il dictionary lo creo usando qualcosa di questo genere > > Dict = { x: x * 2 for x in range(10) } In verità, non è esa

Re: [Python] Creare un dictionary in python 2.6 and python 2.7

2014-07-07 Per discussione emmanuel segura
Ciao a tutti, Mi rispondo da solo http://stackoverflow.com/questions/1747817/python-create-a-dictionary-with-list-comprehension Grazie Il 07 luglio 2014 14:19, emmanuel segura ha scritto: > Ciao a tutti, > > Mi scuso per la domanda anche se per qualcuno sara una domanda da > poco, ma sono nuov