>  Premetto che sto usando Python 3.3:
>
>  se io ho il seguente ciclo:
>
>    x=1
>    while x<5
>          print (x)
>          x=x+1 
>
>   come faccio a farmi stampare i valori tutti sulla stessa riga, separati da 
>uno spazio ?  Così com'è, me li stampa tutti in colonna.
>


print (x),
ovvero con la virgola.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a